LassoScript Utility
Basics Browse Detail

! Not Logical

Tag Link ! Not 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 Not operation. Returns False if its parameter evaluates to True or True otherwise.

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


[If: !(Right_Parameter)]

If: (Right_Parameter);


Required Parameters
Right_Parameter The boolean value which should be negated.


To return a result if a condition is False:

Use the logical not symbol ! within an opening [If] tag. The following example checks an expression (10 < 1) and returns the contents of the [If] ... [/If] tags. The expression evaluates to False so the negated condition evalutes to True.

[If: !(10 < 1)]
  The expression is False.

The expression is False.