LassoScript Utility
Basics Browse Detail

- Hyphen

Tag Link - Hyphen Category Delimiter
Type Delimiter Source Available No
Support Preferred Version 2.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0, Lasso 1.x

Description

Hyphens are used to signal the start of Lasso command tags and keywords.

Command tags are specified within the opening [Inline] tag as well as within HTML forms, inputs, and URLs.

Keywords or named parameters are specified within many Lasso tags to change the output or function of the tag. All encoding keywords begin with hyphens.

Note: No field names or developer defined action parameter names should start with a hyphen. Lasso will assume that these are keywords or command tags and an error could result.

Syntax

<a href= "response.lasso?-CommandTag=Value"> Link </a>

<form action="Action.Lasso" method="POST">

</form>

[Inline: -CommandTag='Value'] ... [/Inline]

[TagName: -Keyword]

[TagName: -Keyword=Value]

<?LassoScript
Inline: -CommandTag='Value';
TagName: -Keyword;
TagName: -Keyword=Value;
/Inline;
?>

Parameters

No Parameters Required.

Change Notes

Hyphens are now required before all keywords in Lasso tag parameters. This rule is enforced if Strict Syntax is turned on in Lasso Administration. Strict Syntax is on by default in new installations.

Use of keyword names without hyphens is supported for backwards compatibility, but only if Strict Syntax is deactivated in Lasso Administration.

Examples

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