<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Script structure > Conditional parsing statements > #DEF |
Description
Check if a variable exists with the given name.
Syntax
n = #DEF(VariableName)
n = %DEF(VariableName)
Returns
Number: %TRUE or %FALSE
Parameters
Name |
Type |
Optional |
Meaning |
VariableName |
Name |
No |
A possibly variable name to check. |
Remarks
#DEF is an alias of Variable_Exists function.
#DEF and %DEF are exactly the same thing in thinBasic. They were both developed in thinBasic mainly for compatibility with other languages so porting code from sources defined in other languages would result in a more easy task.
Restrictions
See also
Examples