modding:function:strfind
Discuss this page on this pages TalkPage
strFind
Syntax | (strFind string string) |
---|---|
Arguments | string: The string that to search. |
string: The string you want to search for. | |
Returns | number: The index where the second string is found starting at 0, if not found returns Nil. |
Category | string operator |
Description | Finds the second string in the first string and returns where it is in the first string. |
Example
(strFind "abcdef" "ab")
Returns the number 0.
(strFind "abcdef" "cd")
Returns the number 2.
(strFind "abcdef" "Betel")
Returns Nil. Return to Functions list
modding/function/strfind.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1