&&verifyMatch: Difference between revisions

From m204wiki
Jump to navigation Jump to search
Ekern (talk | contribs)
Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| Returns the 1-based position (in ''string'') of the first character in ''string'' that is also in the characters in ''char..."
 
(No difference)

Latest revision as of 17:22, 24 August 2022

Action:

Returns the 1-based position (in string) of the first character in string that is also in the characters in charSet. If no character in string is in charSet, returns 0.

Syntax:

&&verifyMatch(string,charSet

where the arguments observe the rules for &&function string arguments.

For example, the first &&verifyMatch call in the following sequence
returns 2; the second returns 1; the third returns 1; the fourth returns
3; the fifth returns 0:

&&verifyMatch("Shazam","abcsh")  &&verifyMatch("Shazam","abcSh")  &&verifyMatch("Shazam","Shazam") &&verifyMatch("Shazam","abc")  &&verifyMatch("Shazam","xxx") 

Introduced: Build 58