Go Down

Topic: More than one OR statement? (Read 367 times) previous topic - next topic

How do I add more than one OR statement?

I currently have;
Code: [Select]
if(dT > 0.2 || dT < -0.2) {


how do I add another OR statement to it?

I want to add x=360

UKHeliBob

Code: [Select]
if(dT > 0.2 || dT < -0.2 || x = 360)
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

JimboZA

Bzzzzzzzzzzt... shouldn't that be x == 360?

Ah thats where I was going wrong.  I too was only using one '=' not two

Thanks for your help  :)

UKHeliBob

BONG !

Yes, of course it should.  In my defence he did say that he wanted x=360 and that is what he got !
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy