VARIABLE()

VARIABLE(V)

RETURNS 1 IF V$ REPRESENTS A DEFINED VARIABLE, 0 OTHERWISE

  • Type: Function
  • Parameter: 1
  • Group: Reference

ACTION

The function VARIABLE(V) returns 1 if V$ represents a defined variable, 0 otherwise.

V is a string.

Remark: a variable is defined by DIM.

SYNTAX: Result=VARIABLE(V)

  • V = string

USE

  • The function VARIABLE() is used to know if a variable is defined.

ERROR

  • None.

EXAMPLE

dim va%

if variable("va%")=1 then print "the variable va% exists"

SEE ALSO

DIM