LassoScript Utility
Basics Browse Detail

-OperatorEnd

Tag Link -OperatorEnd Category Operator
Type Command Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Lasso MySQL
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

Description

-OperatorEnd required for each -OperatorBegin tag which is included in an action. The field-level logical operator specified in the -OperatorBegin tag is in effect until the matching -OperatorEnd tag is reached.

The operator specified in the -OperatorEnd tag is optional, but should be specified as the same operator in the matching -OperatorBegin tag for best results.

Syntax

[Inline: -OperatorBegin=Operator, ... , -OperatorEnd=Operator]

<a href="default.lasso?-OperatorBegin=Operator&...&-OperatorEnd=Operator">Link</a>

<form action="default.lasso" method="POST">
  <input type="hidden" name="-OperatorBegin" value="Operator">
  ...
  <input type="text" name="-OperatorEnd" value="Operator">
</form>

Parameters

Optional Parameters
Operator The logical operator. Should match the operator specified in -OperatorBegin. One of AND, OR, or NOT.

Examples

To specify a complex search in a database action:

Use the -OperatorBegin and -OperatorEnd command tags. The following example specifies a -Search action in [Inline] ... [/Inline] tags. Records which have Last_Name of Doe and are not female are returned. The exclusion of records for women is done by surrounding the name/value pair for the Sex field with -OperatorBegin='NOT' and -OperatorEnd='NOT'.

[Inline: -Search,
    -Database='Contacts',
    -Table='People',
    'Last_Name'='Doe',
    -OperatorBegin='NOT',
      'Sex'='Female',
    -OperatorEnd='NOT']
  [Records]
    <br>[Field: 'First_Name'] [Field: 'Last_Name']
  [/Records]
[/Inline]

<br>John Doe