LassoScript Utility
Basics Browse Detail

|| Or Logical

Tag Link || Or Logical Category Symbol
Type Symbol Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Boolean Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0


|| performs a boolean Or operation. Returns True if either parameter evaluates to True or False otherwise.

The left and right parameter to this symbol will be cast to boolean automatically. Integer or decimal values equal to 0, empty strings '', the string 'false', empty arrays, empty maps, and null are cast to False. All other values are cast to True.


[If: Left_Parameter || Right_Parameter]

If: Left_Parameter || Right_Parameter;


Required Parameters
Left_Parameter Boolean value to be compared.
Right_Parameter Boolean value to be compared.


To return a result if either of two conditions is True:

Use the logical or symbol || within an opening [If] tag. The following example checks two conditions (10 < 1) and ('a' < 'z') and returns the contents of the [If] ... [/If] tags since the second condition evaluates to True.

[If: (10 < 1) || ('a' < 'z')]
  One of the conditions is True.

One of the conditions is True.