0
edits
Changes
SSlogic
,no edit summary
Web Page View fields can use a unique SmartSimple logic interpreter. Web page logic gives you the ability to display certain content or perform certain actions only when specified conditions are met.
SmartSimple logic follows the following template:<br>
<!--@sslogic(CONDITION)--><br>
The content to be displayed when condition is true<br>
<!--@end--><br>
Note that the content to be displayed (the middle line) can either be in plaintext or in HTML.
Often, you will want to display one of two texts--one text in the case that a condition is met and another in the case that the condition is not met. This is achieved through the use of an "else" operator. The following sample code will display one message if a user is male and another if the user is female:<br><<!--@sslogic('@sex@'='M')--><br>You are a guy.<br><<!--@else--><br>You are a girl.<br><<!--@end--> [[Category:Custom Fields]]<br>