12-14-2013, 05:36 PM
without knowing more here is a basic example
Function Function5
can use other functions to search string as well
Function Function5
str s="string i am **** checking"
int i=findw(s "****")
if i!=-1
,sel(list("option 1[]option 2[]option 3"))
,,case 1
,,out "this is option 1"
,,s.findreplace("****" "option 1" 2"")
,,case 2
,,out "this is option 2"
,,s.findreplace("****" "option 2" 2"")
,,case 3
,,s.findreplace("****" "option 3" 2"")
,,case else ret
out s
can use other functions to search string as well