DataBasic Reference > Statements and Intrinsic Functions > U > UNASSIGNED Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

UNASSIGNED Function (DataBasic) (m618703+unassigned_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

UNASSIGNED Function

Determines whether or not a value is assigned to a variable.

Syntax

UNASSIGNED(variable)

Syntax Elements

variable is a single variable reference only.

Comments

UNASSIGNED returns 0 (zero) if variable is currently assigned a value; otherwise, it returns 1.

See Also

ASSIGNED function (MultiValue compatibility).

Examples

X = UNASSIGNED(VAR)

Variable X is assigned a value of 0 if VAR is currently assigned a value, or a value of 1 otherwise.

IF UNASSIGNED(INDEX) THEN GO 10 ELSE GO 20

The program branches to statement label 20 if INDEX is currently assigned a value. The program branches to statement label 10 if INDEX is currently unassigned.

RealityV15.0Comment on this topic