09-19-2015, 11:55 PM
Hi !
I'm kind of stuck, could you help me ? :-)
I want to do some specific actions if a string contains a specific word
for example :
Macro test
Since now, i'm doing this :
Macro test 6
But i'm sure there's a way to do it properly ( By my way, the execution time is really slowed down with "heavier" strings )
Thanks in advance
I'm kind of stuck, could you help me ? :-)
I want to do some specific actions if a string contains a specific word
for example :
Macro test
str text="Hi ! My name's John, I live in Kentucky !"
if text CONTAIN "Kentucky"
,out "Hurray!"
Since now, i'm doing this :
Macro test 6
str text="Hi ! My name's John, I live in Kentucky !"
rep 500
,text.replacerx(".Kentucky" "Kentucky" 8)
,text.replacerx("Kentucky." "Kentucky" 8)
if text="Kentucky"
,out "Hurray !"
But i'm sure there's a way to do it properly ( By my way, the execution time is really slowed down with "heavier" strings )
Thanks in advance