linescontain(
LINES
,
VALUE
)

The linescontain( function checks to see if any line in a carriage return separated array matches the specified value.


Parameters

This function has two parameters:

lines – text with multiple lines, separated by carriage returns.

value – value to look for. For the function to return true, the value must exactly match one of the lines in the text, including upper and lower case.


Description

This function checks to see if any line in a carriage return separated array matches the specified value.

linescontain("a
    b
    c","b") ☞ -1 (true)
linescontain("a
    b
    c","3") ☞ 0 (false)

Note: This function is equivalent to:

arraycontains(thelines,thevalue,cr())

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.