[Lasso_TagExists] returns True if the specified tag is currently defined or False otherwise.
Note: [Lasso_TagExists] will not return True for internal tags such as those listed below. These tags are implemented directly in the Lasso parser for better performance.
The internal tags include: [Abort], [Define_Tag] ... [/Define_Tag], [Define_Type] ... [/Define_Type], [Encode_Set] ... [/Encode_Set], [Fail], [Fail_If], [False], [Handle] ... [/Handle], [Handle_Error] ... [/Handle_Error], [If] ... [Else] ... [/If], [Iterate] ... [/Iterate], [Lasso_Abort], [Loop] ... [/Loop], [Loop_Abort], [Loop_Count], [NoProcess], [Params], [Protect] ... [/Protect], [Return], [Run_Children], [Select] ... [Case] ... [/Select], [Self], [True], and [While] ... [/While].
[Lasso_TagExists: 'Tag Name']
Use the [Lasso_TagExists] tag to check that the tag exists. The following example checks that the [NSLookup] tag is defined before calling it.
[If: (Lasso_TagExists: 'NSLookup')]
[NSLookup: 'www.example.com']
[/If]
127.0.0.1
Tag Link | [Lasso_TagExists] | Category | Tags |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 3.0 |
Output Type | Boolean | Security | None |
Implementation | Internal | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x |
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 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft