XML Script logo
Command _switch
Attribute

item, a auto-interpolated string

[required] the item to test.

Description

The switch command is a multi-way decision that tests whether 'item'matches any of the 'test' attributes of the <case /> subelements. If there isa match then the contents of the <case /> subelements are interpolated, ifthere is no match then the contents of the <default /> subelements is used, ifit exists.

Examples of use

                                
                        

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