Hi David,
Sorry about the late response.
I’ll also double check on the conditional tags but here are some basic examples of how these tags can be used.
In short you can use the IF-ISSET to test if the value of a of a tag has been set. It’s similar to the PHP isset() function:
[[:IF-ISSET? &value=`[[+ShowContent]]` &then=`Here’s my content` ]]
You could use a snippet to set the value of the ShowContent placeholder.
Another example where this tag might come in handy is in the case where you might want to use a TV to hide or show some content on a page. The TV could be a simple checkbox:
[[:IF-ISSET?
&value=`[[*ShowContent]]`
&then=`Some extra content here. This could be a sidebar, etc`
&else=`Default content here`
]]
The IF-EMPTY tag is the opposite of IF-ISSET. It checks to see if tag or value is empty then displays some content. This tag is also similar to the PHP empty() function:
[[:IF-EMPTY?
&value=`[[*Private]]`
&then=`You can’t see this section`
&then=`Hi and welcome to my private corner`
]]
The IF-COMPARE tag is used to compare the value or content of two tags. This is very useful if you would like to display some content when a tag contains a certain value:
[[:IF-COMPARE?
&value=`[[*Options]]`
&equal=`1`
&then=`You have selected Option 1`
]]
[[:IF-COMPARE?
&value=`[[*Height]]`
&equal=`[[*Width]]`
&then=`Display something here`
]]
By combining these tags a user can control where and when content is displayed.
Some other examples where conditional tags might come in handle:
* Dynamic CSS pages - render CSS based on browser
* Mobile Pages (WAP Content) - display device specific content
* Restricted Content
* Render Browser specific content - great for serving up IE bug fixes
* Basic Content scheduling - example:
[[:IF-COMPARE?
&value=`[[Date]]`
&equal=`2006-08-25`
&then=`Welcome to our One Day Sale!...`
]]