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 <case>
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Execute a block of actions within a <switch> element when the specified condition is met.
Synopsis
<switch> <case condition="1"> ... </case> <default> ...  </default> </switch>
Attributes
Attribute Description Value
condition Required. An ObjectScript expression that, if true, causes the contents of the <case> element to be executed. An expression that evaluates to the integer value 1 (if true) or 0 (if false).
Elements
Element Purpose
<annotation> Optional. A text string that describes the <case> element.
Description
The <switch> element contains one or more <case> elements. The elements within a <case> element are executed if the condition evaluates 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