Text String 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 text string literal is a string of text enclosed within a pair of quotation marks. A text string literal must not contain any control characters such as a newline character, carriage return, or tab.

IF ( _@FIND( KeywordString, "politic" ) )

. . . . . . .

ENDIF

If a quotation mark is to be contained within of the string of text, it must be preceded by a backslash as in the example below.

IF ( _@FIND( KeywordString, "\"Jim Crow\"" ) )

. . . . . . .

ENDIF

Back-slashes within a text string literal, not found at the end of a line, and not preceding a quotation mark are treated as simple text, and not removed. That way a DOS pathname may be entered just as it would be on a command line.

IF ( _@FIND( SearchPath, "\test\data" ) )

. . . . . . .

ENDIF

A back-slash at the end of a text string literal must be entered twice to avoid having it mistaken for an attempt to include the terminating quotation mark within the text string literal.

IF ( _@FIND( SearchPath, "\test\data\\" ) )

. . . . . . .

ENDIF