Go Down

Topic: problem in while language (Read 258 times) previous topic - next topic

latee

hello...may i ask, is it valid to use while and if in the loop?

Arrch

You mean nest an if statement within a while loop? Sure.

Henry_Best


You mean nest an if statement within a while loop? Sure.


Although less common, you can also nest a while loop within an if statement.

JimboZA

Or if by loop you mean the void loop(), then yes to that as well.
No PMs for help please.
Arduino with e'net at http://jimboza.gotdns.com:8085/
DO NOT power servos from Arduino 5V: give them their own power and connect the grounds.

WizenedEE

"We don't know your question, but the answer is yes"

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