This is a client-side condition which compares the value of a specified JavaScript variable against the value specified when configuring the condition.
The following configuration options are available for this condition:
Variable type: This is used to determine what type of variable to convert the JavaScript variable to. The available options are:
Boolean
Numeric
Text
Date
The other configuration options available for this condition depend upon the variable type selected.
Variable Name: This is used to provide the name of the variable used to perform the comparison against.
Operator: This is used to specify the type of comparison to perform. The operators available depend on the variable type.
Value: This is used to specify the value used to perform the comparison. If you selected Date from the Element Type dropdown, then a calendar view is displayed when this text box receives the focus.
Regular Expression: If you select Matches regular expression from the Operator dropdown, this text box is used to enter the regular expression you wish to use.
Test Regular Expression: This button appears when you select Matches regular expression from the Operator dropdown. It is used to provide a sample of text against which to test the Regular Expression specified for this condition. Type in some sample text and press the Test button. A tick or cross is displayed to indicate whether the Regular Expression is valid when run against the sample text provided.
Case Sensitive: This is used to specify whether or not the condition uses case sensitive matching. Checking the box instructs the condition to use case sensitive matching. This option is not available if you selected Matches regular expression from the value dropdown.
Trim Whitespace: This is used to specify whether or not to trim leading or trailing whitespace from the value used for the comparison. Checking the box means that any leading or trailing whitespace shall be removed.
Note: If the specified JavaScript variable does not exist on the web page on which the rule is placed, or if there is an error with the specified JavaScript variable, this condition evaluates as false.