ASSIGNED function

Syntax

ASSIGNED (variable)

Description

Use the ASSIGNED function to determine if variable is assigned a value. ASSIGNED returns 1 (true) if variable is assigned a value, including common variables and the null value. It returns 0 (false) if variable is not assigned a value.

PICK Flavor

When you run in a PICK flavor account, all common variables are initially unassigned. ASSIGNED returns 0 (false) for common variables until the program explicitly assigns them a value.

Example

A = "15 STATE STREET"
C = 23
X = ASSIGNED(A)
Y = ASSIGNED(B)
Z = ASSIGNED(C)
PRINT X,Y,Z

This is the program output:

1   0   1