if statment not working for some reason?

edited May 2017 in Arduino

Hello, im adding a photo that for some reason the if statment in it doesnt seem to work. if i will delete the if statment it will write everything i keep getting from the arduino on a loop so this is why i put that if statment there so it will only write when this number is displayed on the serial on the arduino. when i add the if statment it doesnt write anything at all. if statment

Answers

  • Println locked

    What does it say?

    Use trim on locked

    and use indexOf>-1 instead of equals

  • Please no screenshots of your code. Copy and paste it here in the forum and format your code properly. To do so, select your code and hit ctrl+o.

    Can you post your arduino code as well?

    Kf

  • I doubt if you're doing what you think you are.

Sign In or Register to comment.