XML Script logo
The _switch command
Usage

The switch command is a multi-way decision that test whether the supplied item matches any of the test attributes of the case sub-elements. If there is a match, then the contents of the case sub-element are interpolated, if there is no match, then the contents of the default sub-element is interpolated, if it exists

Examples

Switching without a default sub-element

Switching with a default sub-element

Interpolation within a case element

Version

1.1

Ref

t.58

Date

27 October 1999

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited