Statements Reference
Statements allow you to specify tracking code, information, etc. to be shown on one particular template. The benefit is you do not have to customize another template just to add information or code to that one template.
IF Statement
[IF="TOKEN"] If token is defined. Then display ###TOKEN### [ENDIF="TOKEN"]
EITHER Statement
[EITHER="TOKEN"] Some text here. [OR="TOKEN"] Else this text [ENDEITHER="TOKEN"]
Simple expression handling
Example of tracking code implementation on the global template that is specific to the confirmation template:
[IF="TEMPLATEID"=="4"] <!-- Google Code for test-purchase Conversion Page --> <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = "(ID PROVIDED BY GOOGLE)"; var google_conversion_language = "en_US"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "test"; //--> </script> <script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <img height="1" width="1" border="0" src="https://(LINK PROVIDED BY GOOGLE)"> </noscript> [ENDIF="TEMPLATEID"]
The below table provides the list of available expression operators and their numeric and string equivalent.
| Numeric | String | |
|---|---|---|
| Less than | < | lt |
| Less than or equal to | <= | le |
| Equal to | == | eq |
| Greater than or equal to | >= | ge |
| Greater than | > | gt |
| Not equal to | != | ne |
