<@IFEQUAL> <@ELSE> </@IF>Syntax <@IFEQUAL VALUE1=value1
VALUE2=value2>
DescriptionIf the value of the VALUE1 attribute and the value of the VALUE2 attribute are equal, <@IFEQUAL> includes trueSubstitutionText; otherwise it includes falseSubstitutionText. Each of the attributes may be a meta tag or a literal value, or a combination of both. Literal values must be quoted if they contain a space. The <@ELSE> portion is optional. <@IFEQUAL> can be used to do begins-with type comparisons. An asterisk at the end of either value acts as a wildcard character, matching any characters at the end of the other value attribute. (You can search for an asterisk character by using <@CHAR 42>.) When comparing the values, Tango attempts to convert both values to numbers and perform a numeric comparison. If one or both values cannot be converted to numbers, Tango performs a string comparison. The trueSubstitutionText and falseSubstitutionText may include other <@IF>, <@IFEMPTY>, and <@IFEQUAL>. |
Macintosh only: These tags may be nested up to 12 levels;
beyond this limit, an error is returned.
Examples <@IFEQUAL VALUE1="<@CGIPARAM
NAME='user_agent'>"
This example returns different HTML depending on the user's Web browser. <OPTION VALUE="NE"
<OPTION VALUE="NW"
<OPTION VALUE="SE" <@IFEQUAL
VALUE1=<@COLUMN
<OPTION VALUE="SW" <@IFEQUAL
VALUE1=<@COLUMN customer.region>
This example sets the correct pop-up menu item to SELECTED based on the value of a database field. See Also <@IF>,
<@ELSEIF>, <@ELSEIFEMPTY>, <@ELSEIFEQUAL>, </@IF>
|
Copyright © 1998, Pervasive Software Inc. All rights reserved.