Lasso Soft Inc. > Home

[Else]

Valid only within [If] ... [/If] container tags. [Else] executes the remainder of the container tag only if the expression in the [Else] tag returns True or no expression is specified.

  • Syntax
  • Parameters
[If: Conditional Expression]
  ...
[Else: Conditional Expression]
  ...
[Else]
  ... Default ...
[/If]
Optional Parameters
Conditional Expression The conditional expression to be evaluated. If True this portion of the conditional will be executed. Defaults to True if no conditional expression is specified.
Examples

To show a message if a field is empty:

Use the [If] ... [/If] container tag with an [Else] tag. The [If] tag contains a conditional expression to check whether the field value for First_Name contains any data. If it does then the field value is shown with a label, otherwise a message is displayed that the field does not contain data.

[If: (Field: 'First_Name') != ' ']
  <br>First Name: [Field: 'First_Name']
[Else]
  <br>No First Name Specified.
[/If]
Result:
<br>No First Name Specified.
Tag Link [Else] Category Conditional
Type Process Data Source Any
Support Preferred Version 2.0
Output Type None Security None
Implementation Internal Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25,LDML20,LDML1x

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