$Data()

Examples of $DATA()

The $DATA function returns an integer code describing the value and descendent status of a local or variable.

The format for the $DATA function is:

    $D[ATA](glvn)
    

The following table summarizes $DATA() return values.

$DATA() Results

 

VALUE

DESCENDANTS

 

NO

YES

 

NO

0

10

 

YES

1

11

 

The $DATA() return values can also be understood as a pair of truth-values where the left describes descendants and the right describes data where M suppresses a leading zero (representing no descendants).