<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !STR.- String Command > String Operations |
MiniRobotLanguage (MRL)
STR.CIContains
Checks for the Presence of Multiple Strings in a Source String (Case Insensitive)
On TOS you will find the word that was found (in Lower case). Below the number of the Word (P3 - > 2) and below the 7th character where it was found.
Intention
This command is used to check if one or more specified strings are contained within a source string.
The search is case-insensitive.
It returns the position where the string is found and the number of the element found (P2 is 1, P3 is 2, etc.).
Syntax
STR.CI-Contains|P1|P2[|P3 ... |P6]
Parameter Explanation
•P1 - (Source String) The main string in which to search for the specified strings.
•P2, P3, ..., P6 - (Optional) Strings to check for their presence in P1. At least one string (P2) must be specified.
Example
'***********************************
' IRS.-Sample
'***********************************
$$SRC=<HelloWorld>
$$CH1=Bello
$$CH2=World
STR.CIContains|$$SRC|$$CH1|$$CH2
DMP.6
MBX.!
' Result see picture above.
ENR.
Remarks
-
Limitations:
-
See also:
•