The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: While loop with two conditions?
Replies: 4   Last Post: Nov 21, 2012 9:15 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Sensible Man

Posts: 3
Registered: 11/9/12
While loop with two conditions?
Posted: Nov 21, 2012 8:12 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm sure this is a very simple question, but is it possible to create a while loop with two initial conditions?

I basically need

while x<3, or y>500,

execute loop

end if either x<3 or y>500 is met

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.