Skip to Main Content
Return to Navigation

Using Text Strings as Parameters in Functions

The following rules apply when text strings are used as parameters in functions:

Note: PTF will return an error (unrecognized / illegal variable format) if the user fails to wrap a text string being supplied as a parameter for a function in quotes.

This table shows examples of the text string used in the recognition field assuming the variable&MyVar is set to “Hello” (&MyVar=”Hello”) and the expected results:


Expected Result

CONCAT("&MyVar = "

| &MyVar)

&MyVar = Hello

SUBSTR("Hello" | 1 | 5 )


SUBSTR("""Hello """| 1 | 7 )


INSTR("Hello" | "e" )


INSTR("""Hello"""| "e" )


INSTR("""Hello""" | ""e"")


INSTR(Hello | e )

PTF returns error message