TypeError: txt.indexOf is not a function

If you do this:
untitled script pic (48)

No error, but if you do this using the round block:
untitled script pic (49)

I get TypeError: txt.indexOf is not a function.

This only happens in the second input, so it's fine to do it in the first input. This block can be found in Libraries > Strings, multi-line input.

Possible Fix

Convert the number to text before evaluating txt.indexOf.