[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*Subject*: Re: simple question*From*: Craig Markwardt <craigmnet(at)cow.physics.wisc.edu>*Date*: 18 May 2000 13:44:54 -0500*Newsgroups*: comp.lang.idl-pvwave*Organization*: U. Wisc. Madison Physics -- Compact Objects*References*: <392415fd@spitfire.dmu.ac.uk>*Reply-To*: craigmnet(at)cow.physics.wisc.edu*Xref*: news.doit.wisc.edu comp.lang.idl-pvwave:19684

"richard hilton" <rdh5@dmu.ac.uk> writes: > This probably sounds like a stupid question but does anybody know of an IDL > equivilent to the CONTINUE command in C/C++ ? Your help would be much > appreciated. I've wished for an equivalent to continue and break, but have never found it. You will have to do use GOTO explicitly. for i = 0, n-1 do begin if val(i) EQ 0 then goto, NEXT_VAL ;; equivalent to continue compute_val, val(i) if val(i) LT 0 then goto, DONE_VAL ;; equivalent to break NEXT_VAL: endfor DONE_VAL: ... Craig -- -------------------------------------------------------------------------- Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response --------------------------------------------------------------------------

**Follow-Ups**:**Re: simple question***From:*Paul van Delst

**References**:**simple question***From:*richard hilton

- Prev by Date:
**Re: tensor multiplication** - Next by Date:
**[Fwd: tensor multiplication]** - Prev by thread:
**simple question** - Next by thread:
**Re: simple question** - Index(es):