Changes

Jump to: navigation, search

SSlogic

196 bytes added, 15:16, 20 August 2020
no edit summary
* The content to be displayed (the middle line) can either be in plaintext or in HTML.
* Be sure there are quotes (single or double) around the variable and value. Note: Your choice in the use of quotes depends on the variable's contents. E.g. names containing apostrophes should use double quotes when referencing that variable.
* SSlogic does not support nested logic statements. In other words, you cannot put an sslogic statement within another sslogic statement.
* NOTE: You cannot use sscalculation syntax within an sslogic statement. The sslogic syntax will manage the calculating. It does not require additional syntax prompts.
<nowiki><!--@sslogic(</nowiki>''condition 1'')-->aaa
<nowiki><!--@else if(</nowiki>''condition 2'')-->bbb
<nowiki><!--@else if(</nowiki>''condition 3'')-->ccc <nowiki><!--@else-->ddd </nowiki>
<nowiki><!--@end--></nowiki></nowiki></nowiki></nowiki>
</pre>
==Fields Storing Single Quotes or Double Quotes==* SSlogic can be used to display fields that may have a single quote quotes or double quotes stored within them.
* The escape[] function is used to achieve this:
<pre><nowiki><!--@sslogic('escape[$123456$]'!='')--></nowiki></pre><pre><nowiki><!--@sslogic('escape["137762$@Field Name@]'!='')--></nowiki>
</pre>
* NOTE: You must wrap the function using single quotes
==Using Object Lists==
Smartstaff
6
edits

Navigation menu