Go Down

Topic: problem in while language (Read 289 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.
meArm build blog:     http://jimbozamearm.blogspot.com/
Please don't PM for technical advice.
Beware the XY Problem..... http://xyproblem.info/

WizenedEE

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

Go Up