Date: Jan 17, 2013 1:20 PM
Author: anyone
Subject: Re: Stopping an if statement

On Thu, 10 Jan 2013 11:11:08 +0000, Halley  wrote:

> I have a series of functions I want to complete if a certain statement
> is true, In this case it is
>
> if p(i,j,k) <= -1
> How do I stop the loop after this has been proven true only once? I
> only care about the first occurence of this being true in my matrix,
> only at that point do I want to run my other functions. Thank you.


Don't use 'if". See 'For/While loop"