Go Down

Topic: Expected expression error (Read 270 times) previous topic - next topic


Cannot find error "expected primary expression before { taken".


Please post your code and the exact error message you're seeing.

I'm not going to waste my mobile data on 200k of PDF.
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


Posting the complete error would help.


You have:
Code: [Select]
} else if ((sensorValue >= 300) && {sensorValue < 700) {

The "&& {" is one problem.  It should be "&& (" and you are missing a ')' after the "700)".

This would be much easier to catch if you had used Toole->Auto Format on your code.  Any you should have included the code in your post.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


Any you should have included the code in your post.
For sure, but if you really must attach it then attach it as a .ino or even a .txt.  Why convert it to .pdf and waste people's bandwidth?
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

Go Up