Lasso Soft Inc. > Home

[ any->isa ]

Method

[any->isA] tests if a type is of the specified type. Requires a type as a parameter.

  • Syntax
any->isa(::type)
Examples
  • Intermediate

To test whether a type is of a specified type:

Use the [any->isA] method. The following example tests whether a thread variable is initialised, and if not then redefines it. Finally the code outputs the resulting variable.

Code

! var(myvar)->isA(::array)
? $myvar = array('a','b','c')
$myvar

Result

array(a, b, c)

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