Bookshelf Home | Contents | Index | PDF |
Siebel Pharma Handheld Guide > Print Tagging Language > Data Manipulation and Logic Tags > Conditional TagsThe conditional tag compares a variable against a criterion according to the operator, and decides to execute either an IF or an ELSE clause. UsageUse conditional tags to develop simple if-then logic to control the output of your print data. It is recommended that if-then-else tags are kept simple to ensure that print output is successful. Syntax<TAG:IF variable="VARIABLE NAME" operator="OPERATOR" criteria="CRITERIA" numeric= "NUMERIC"> NOTE: If the comparison is true, the tags immediately following the <TAG:IF...> tag are executed; if the comparison is false, the tags immediately following the <TAG:ELSE...> tag are executed. ExampleThe following example evaluates whether the variable numrows is equal to 15, 17, or 19:
<TAG:IF variable="numrows" operator="EQ" criteria="15|17|19"> <TAG:Concat variable="numrows" append=" rows." prepend="Printed "> <TAG:Concat variable="numrows" append=" that are odd."> <TAG:Concat variable="numrows" append=" rows." prepend="Printed "> |
Siebel Pharma Handheld Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |