Numeric Literals

A literal is a value defined within the Logic Template for use as function arguments, or within an expression. Three kinds of literals are supported: numeric literals, text string literals, and date-time literals.

A numeric literal is either a decimal constant or a hexadecimal constant. A decimal constant is expressed by a string of digits optionally preceded by a plus or minus sign. A hexadecimal constant is expressed by a zero followed by an x followed by from 1 to 8 hexadecimal digits (0-f). A numeric literal is always either enclosed within a pair of grave accents or as part of a larger expression enclosed within a pair of grave accents.

Examples
//Compare the literal 2012 with the value in the variable "Value"

IF ( 2012 == Value )

. . . . . . .

ENDIF

//Compare the hexadecimal literal for 39 with the value in the variable "Flags"

IF ( 0x0027 == Flags )

. . . . . . .

ENDIF