/help $matchtok

$matchtok(tokens,string,N,C)
Returns tokens that contain the specified string.

$matchtok(one two three, e, 0, 32) returns 2
$matchtok(one two three, e, 2, 32) returns three

If you specify zero for N, it returns the total number of matching tokens.

Note: $matchtokcs() is the case-sensitive version.

maybe you're looking for $gettok?
/help $gettok


Code:
//if ( khaled isgod ) echo yes | else echo no