Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Delimits an ELSE block.




The CSP:ELSE tag, placed within a CSP:IF block, specifies that the text between it and the end of the CSP:IF are displayed if the CSP:IF CONDITION evaluates to FALSE at runtime.

For example:

  <CSP:IF CONDITION=(name="Jack")>
    Hello, Jack!
    Hello, someone who is not Jack!
Copy code to clipboard

Refer to the CSP:IF tag for more details.

Specifying Script Language

The CSP:ELSE tag will fire one of two rules depending on whether the language is set to cache or basic; these two rules are %ELSE and %ELSEBASIC.