If the Needle provided is a string, the comparison occurs case insensitively. For the case sensitive version, see findtextex.md.
if(findtext("Foo Bar", "foo"))
world.log << "This succeeds!"
if(findtext("Foo Bar", "Foo", 3))
world.log << "This does not!" // as the Start is set after the occurence in the string
Negative amounts for the Start or End value count from the end of the string.
if(findtext("Foo Bar", "Bar", -3))
world.log << "We get here!"