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 stringindexof(g.wish,”l”) as result !=”” then response with body =”$result}”
|  Usage
				   | Description 
				   | Result 
				   | 
|---|---|---|
|  g.wish="hello world" 
				   |  Returns the index of l on its first occurrence.
				   | 2
				   |