Changes

Jump to: navigation, search

SSlogic

360 bytes added, 15:01, 21 March 2012
no edit summary
* The following will display a message for all provinces except Ontario:
<pre>
<!--@sslogic('"@province@'"!='"Ontario'")-->
You are outside of Ontario
<!--@end-->
* The following sample code will display one message if a user is male and another if the user is female:
<pre>
<!--@sslogic('"@sex@'"='"M'")-->
You are a guy.
<!--@else-->
You can use multiple sslogic statements if there are more than just 2 options:
<pre>
<!--@sslogic('"@possibility@'"='"Yes'")-->
This will happen for certain.
<!--@end-->
<!--@sslogic('"@possibility@'"='"No'")-->
This is not happening.
<!--@end-->
==Note==
* sslogic can be used in workflow e-mails at Level 1 only.
* In general double quotes (") should be used to enclose variables rather than single quotes ('). If the content includes an apostrophe (equivalent to a single quote) it will disrupt the processing. Double quotes are less common as content. You may want to add an [[Removing Special Characters|onchange]] to the source field to prevent entry of double quotes.
==See Also==
0
edits

Navigation menu