You are here: Functions > ISDEFINED()

ISDEFINED()

ISDEFINED() returns True or False, depending on whether the specified field or variable exists (is defined).

ISDEFINED() is intended for logical testing and is useful for testing if a field or variable exists or has been chosen/specified in a prompting dialog within a procedure.

The field or variable name should be entered as a quoted string.

Function Format

ISDEFINED(C)

The field or variable name is entered as the quoted string C.

ISDEFINED() returns True if the field or variable C exists and False if it does not.

ISDEFINED() returns a False if field or variable C does not exist or a null character is passed to the function.

Examples

Assuming the field/variable AMOUNT exists but the field/variable NAME does not:

ISDEFINED("AMOUNT") = T

ISDEFINED("NAME ") = F

ISDEFINED("") = F