home
software
resumé
contact
Software: SSTP: Directives: SSTP-ELSE

Usage:

SSTP-ELSE

SSTP-ELSE is a conditional operator which will show all text between it and an SSTP-ENDIF only if all SSTP-IF and SSTP-ELSEIF directives before it are evaluated as false. To see what conditional and boolean operators are supported, go to the conditions section.

SSTP-ELSE should always be followed by an SSTP-ENDIF. Nesting is not supported in the current release.

Example:

The code:

<!--SSTP-IF _hello = "yes"-->
Yes!!!!
<!--SSTP-ELSEIF _hello = "maybe"-->
Maybe...Let me think about it.
<!--SSTP-ELSE-->
No way!
<!--SSTP-ENDIF-->

Would display:

Yes!!!!

if the variable _hello was set to "yes". If it was set to "maybe", it would display:

Maybe...Let me think about it.

if it was set to anything else, it would display:

No way!