LassoScript Utility
Basics Browse Detail

[Include_CurrentPath]

Tag Link [Include_CurrentPath] Category Results
Type Substitution Source Available No
Support Preferred Version 8.5
Change New Data Source Any
Output Type String Security None
Implementation Internal Sets Lasso 8.5

Description

[Include_CurrentPath] returns the path to the current Lasso page which is being processed. This will be the same as [Response_FilePath] for files which are being processed directly, but different for include and library files.

For example, compare the value of the [Response_FilePath] and [Include_CurrentPath] tags. If they agree then the page is being loaded directly, otherwise the page is being loaded as an include or library file.

If the current code is executed by a [Process] tag, the [Include_CurrentPath] will return the -Name parameter passed to the [Process] tag.

Syntax

[Include_CurrentPath]

[If: Response_FilePath == Include_CurrentPath]
This page was loaded directly.
[Else]
This page was loaded as an include.
[/If]

Parameters

No Parameters Required.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.