Integration Server 10.7 | Dynamic Server Pages and Output Templates Developer's Guide | Using Dynamic Server Pages (DSPs) | Using the DSP Tags | Conditionally Executing Blocks of Code
 
Conditionally Executing Blocks of Code
 
Building Conditional Blocks With the %ifvar% Tag
Testing for a Particular Value
Building Conditional Blocks with the %switch% Tag
Specifying a Default Case
There are two tags you can use to conditionally execute code in a DSP: %ifvar% and %switch%. Both tags selectively execute a block of code based on the existence or value of a variable at run time.