endsWith Not working for me.

John

Thanks for the quick reply.
This is the example sketch that came with the Arduino not code I have written

"0" doesn't compile
StringStartsWithEndsWith.cpp: In function 'void loop()':
StringStartsWithEndsWith:33: error: invalid conversion from 'const char*' to 'uint8_t'
StringStartsWithEndsWith:33: error: initializing argument 1 of 'int analogRead(uint8_t)'

and '0' doesn't work.
It is possible you could try it and see if the function is actually working.