0
edits
Changes
SSlogic
,no edit summary
<pre>
<!--@sslogic(CONDITION)-->
The content to be displayed when condition is true.This can be more than one line.
<!--@end-->
</pre>
* The content to be displayed (the middle line) can either be in plaintext or in HTML.
'''Condition''' is replaced with the logical condition that your case calls for. The following code sample will display a Christmas tree image if and only if it is currently December:
</pre>
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>
<pre>
<!--@sslogic('@sex@'='M')-->
You can include more than one condition:
<pre>
<!- -@sslogic(‘'@typeyear@’'=’contact’'2008' AND ('@month@'='1' OR '@month@'='2') - -> This is only displayed if the year is 2008 and the month is either Jan or Feb.<!- -@ssattach(after;/files/1234/123/myfilefooter.pdf )end- -></pre>
<pre>
<!--@sslogic(‘@type@’=’contact’) -->
<!--@ssattach(after;/files/1234/123/myfilefooter.pdf )-->
<!--@else-->
<!- - @ssattach(after;/files/1234/123/myotherfilefooter.pdf )- ->
<!--@end-->