iselseif Element
Use with <iselseif> to specify a subcondition off an <isif>tag.
- condition
Allowed data type: string or expression.
elseif_expressionevaluates to a boolean value. If the<isif>condition is true, the system executes the code immediately following the<isif>tag, ignoring the enclosed<iselseif>and<iselse>tags. If the<isif>condition is false, the system ignores the code immediately following the<isif>tag, and then tests each<iselseif>condition in order. When the system finds a true<iselseif>condition, the system executes the code immediately following the<iselseif>tag and ignores any remaining<iselseif>and<iselse>tags. If all<iselseif>conditions are false, the system executes the code following the<iselse>tag.
In this example, the system determines if the product name equals 'case' or 'bag'. If it does, it shows the word Monogram. If it doesn't, it continues processing.