It is great to have those word manipulation functions documented. But I need some help in using ^findtext.
The manual does not say what will happen to the offset returned if the substring is not found. It looks like the return is sort of “undefined” according to the test screen. (No output is generated for that in the testing screen. In my project script it looks like to FAIL the rule calling it…)
So my question is how to catch the condition of “not found”, as I can’t use ^if to test the $$findtext_start variable?.
Thanks for any advice.