Returns the type of the current object.
any->type
Use the [any->type] method. The following example tests whether a variable is of type array, and if so then inserts a new value to the array. Finally the result is output.
Code
local( mylocal = array('a','b','c') )
if(#mylocal->type == 'array') => {
#mylocal->insert('d')
}
#mylocal
Result
array(a, b, c, d)
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments