as title suggests I'm not sure best route to detect the presence of a substring in a string, for example:
OverExtended:anErrorMessage
"anErrorMessage = 'error: robot arm extended too far' "
(anErrorMessage **contains:** 'extended too far')
ifTrue:[
...
...
]
ifFalse:[
...
...
].
Now I know the above doesnt work, but is there an existing method for checking for substrings??
I have found an answer that is both simple and accurate in all scenarios w/o dependancy on readStreams or extentions to 'naitive' VW as far back as VW7.4:
simply use findString:startingAt: and do a greater then zero check for # of occurences
sample: