Hybrid Integration 10.2 | Integrating On-Premises Applications | DSPs and building output templates | 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%.

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release