docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Business Process and Data Transformation Language Reference  /  DTL Elements

Business Process and Data Transformation Language Reference
DTL <switch>
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Evaluate <case> elements and execute the contents of the first one that evaluates to true.
Synopsis
<switch> <case condition="1"> ... </case> <default> ...  </default> </switch>
Attributes
None.
Elements
Element Purpose
<annotation> Optional. A text string that describes the <switch> element.
<case> The first <case> element that evaluates to true is executed.
<default> Optional. If none of the <case> elements evaluate to true, the contents of the <default> element are executed.
Description
The <switch> element contains one or more <case> elements along with an optional <default> element. The contents of a <case> element are executed if the condition evaluates to true. Once a <case> element evaluates to true, none of the other <case> elements nor the <default> element are evaluated. The contents of the <default> element are executed if none of the <case> elements evaluate to true.


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-17 05:24:18