Integration Server 10.11 | Dynamic Server Pages and Output Templates Developer's Guide | Using Dynamic Server Pages (DSPs) | Using the DSP Tags | Conditionally Executing Blocks of Code | Specifying a Default Case
 
Specifying a Default Case
If you want to specify a block of code that executes when all other cases are not true, include a case without a switchValue. The following example illustrates how to create a default case by omitting switchValue and putting the case at the end of the %switch% construct.
.
.
.
%switch acctType%
%case ‘Platinum’%
%include platorderform.html%
%case ‘Gold’%
%include goldform.html%
%case%
%include regorderform.html%
If you include a default case, you must put it at the end of the switch construct. For additional information about using the %switch% tag, see the %switch% tag description on %switch%.