Lasso Soft Inc. > Home

[If] ... [/If]

[If] ... [/If] executes the contents of the container only if the expression in the [If] tag returns True.

The [Else] tag can be used to check additional conditional expressions if the conditional expression in the [If] tag returns False. See the [Else] tag for more details.

  • Syntax
  • Parameters
[If: Conditional Expression]
  ...
[/If]
Optional Parameters
Conditional Expression The conditional expression which is executed to determine if the contents of the container tag should be executed.
Examples

To show a field label only if the field contains a value:

Use the [If] tag with a conditional expression that checks whether the value for the field 'First_Name' is different from the empty string. The field label will only be shown if the field contains some data.

[If: (Field: 'First_Name') != '']
  <br>First Name: [Field: 'First_Name']
[/If]
Result:
<br>First Name: John
Tag Link [If] ... [/If] Category Conditional
Type Container Data Source Any
Support Preferred Version 2.0
Output Type None Security None
Implementation Internal Sets 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