Skip to content
Back to formatted view

Raw Message

Message-ID: <49F0B4CC.8090609@stats.uwo.ca>
Date: 2009-04-23T18:34:52Z
From: Duncan Murdoch
Subject: simple for loop question - how do you exit?
In-Reply-To: <23197504.post@talk.nabble.com>

On 4/23/2009 2:29 PM, dre968 wrote:
> I have a loop and an if statement in the loop.  once the if statement is true
> for 1 value in the loop i'd like to exit the loop.  is there a command to do
> this?  i know its going to be something like exit and i feel stupid asking
> this question

You want "break".  To see the help on this, you need the quotes around 
it:  ?"break", but you don't use them in code, of course.

Duncan Murdoch