XML Script logo
Using the _if element with then and without else
Code
<_if test="1" then="true 1" />
<_if test="1" >true 2</_if>
<_if test="1" ><then >true 3</then></_if>
blank <_if test="0" then="***ERROR***" />4
blank <_if test="0" >***ERROR***</_if>5
-<_if test="0" ><then >***ERROR***</then></_if>-
Output
true 1
true 2
true 3
blank 4
blank 5
--
Ref

x.1801

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