Lasso Soft Inc. > Home

[ Var_Defined ]

Method

[Var_Defined] returns True if a variable has been defined in the current page or False otherwise. Can be used to check if a variable has been defined even if the current value of the variable is Null or the empty string.

Note that this is entered for compatibility and is functionally equivalent to var(var_name)->isNotA(::null).

Please refer to the documentation for "isA" and "isNotA" for specific documentation.

  • Syntax
var_defined('var_name')
Examples
  • Beginner

To check whether a variable has been defined:

Use the [Var_Defined] tag with the name of a variable. In the following example, True is returned if the variable Favorite_Color is defined.

Code

[var_defined('Favorite_Color')]

Result

true

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft