Lasso Soft Inc. > Home

[ == ]

Method

This is a convenience implementation of the "positive equality test" or "is equal to" operator. This is not the is-equal-to operator, but this method is provided to permit is-equal-to operations to be passed as values and later invoked for whatever necessary reason.

Usually, this method would be looked up using the escape method operator before use.

  • Syntax
if(Left_Parameter == Right_Parameter)
    ...
/if
Examples
  • Intermediate

Use the == method to compare two values.

Code

local(op = \==)
#op('hello!', 'hello!')

Result

true
The strings are equal

Use the == method to compare two values.

Code

local(op = \==)
#op('hello!', 'bye!')

Result

false
The strings are not equal

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