LassoScript Utility
Basics Browse Detail

[String_FindPosition]

Tag Link [String_FindPosition] Category String
Type Substitution Source Available No
Support Preferred Version 2.5
Change Unchanged Data Source Any
Output Type Integer 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

Description

[String_FindPosition] takes two parameters: a string value and a -Find keyword/value parameter. Returns the location of the -Find parameter in the string parameter. The test is not case sensitive.

Syntax

[String_FindPosition: 'String Value', -Find='Pattern']

Parameters

Required Parameters
String Value The string which is to be checked.
-Find The pattern which is to be checked for in the string.

Examples

To find the location of a substring within a string:

Use the [String_FindPosition] tag. The following example finds the position of the word Pilot within the string OmniPilot.

[String_FindPosition: 'OmniPilot', -Find='Pilot']

5

Related Tags

Category Tags