Help to understand a bit of a code! (ESP8266)

It's in the link I posted. indexOf returns -1 if the substring is not found.