(SOLVED)Help with ISO C++ forbids comparison between pointer and integer.

Thank you everybody, it works! well not exactly as I intended but that's a different problem :slight_smile: and I will try to sort it out myself before disturbing.
@AWOL, I cannot recall where I got it from, some material that I downloaded long ago, but it was probably typo as guix gave me the right solution.
@ guix special thanks :slight_smile:
@ PaulS and econjack I just thought that the Arduino Ide used a simplified version of C++, well at least now I know where to look at... everywere :slight_smile: