From m204wiki
Jump to navigation Jump to search


Tests if a macro variable is defined.



where variableName is the macro variable whose existence is being checked.

If the named variable exists, &&exists returns 1; otherwise, it returns 0.  

A variable is deemed to "not exist" in these cases:

  • It has not been defined since the Debugger Client was last started or restarted.
  • It has been defined, but it was removed with the unset command.


The following statement returns 0:

echo &&exists("&neverSet") 

The echo statement below returns 1:

set &i = 666  echo &&exists("&i") 

The echo statement below returns 0:

unset &i  echo &&exists("&i") 

Introduced: Build 60