Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | DSPs and building output templates | 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.