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

Usage:

SSTP-ELSEIF condition [boolean_operator condition]

SSTP-ELSEIF is similar to SSTP-IF, but the code between it and an SSTP-ELSEIF, SSTP-ELSE, or SSTP-ENDIF is only evaluated if the SSTP-IF or SSTP-ELSEIF before it is evaluated as false. To see what conditional and boolean operators are supported, go to the conditions section.

The required condition argument is the condition that will be evaluated. The optional boolean_operator allows chaining another if, and condition is the condition to be combined with that boolean operator.

SSTP-ELSEIF should always be followed by an SSTP-ELSEIF, SSTP-ELSE, or 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-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.