RulePoint
- RulePoint 6.1.2
- All Products
stringindexof(string1,substring)
Argument
| Required
Optional
| Description
|
---|---|---|
string1
| Required
| The first string.
|
substring
| Required
| The second substring from which you want to retrieve the occurrence of the first index value.
|
when 1 greetings g with stringlastindexof(g.wish,”l”) as result = 9 then response with body =”$result}”
Usage
| Description
| Result
|
---|---|---|
g.wish="hello world"
| Returns the index of l on its last occurrence.
| 3
|