Navigation: thinBasic 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
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |