Re: TIB: RE: If-then-goto-end loops can create a problem


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

Re: TIB: RE: If-then-goto-end loops can create a problem




Why even put a 'Then' and 'End' in there?  They're not needed.

If X=2
Goto 1
Goto 2
Lbl 1
...
Lbl 2

But this is extremely ineffective, instead, do something like this

If X<>2 ;<> does not equal
Then
...
End

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: KilIer2 (kilier2)
http://www.bigfoot.com/~m_rayman/

----- Original Message ----- 
From: Matthew <mobets@flash.net>
To: <ti-basic@lists.ticalc.org>
Sent: Wednesday, May 12, 1999 9:44 PM
Subject: RE: TIB: RE: If-then-goto-end loops can create a problem


> This works fine if x=2, but what if x doesn't equal 2?
> 
> this will work.
> 
> If X=2
> Then
> Goto 1
> End
> Goto 2
> Lbl 1
> End
> Lbl 2
> 
> > -----Original Message-----
> > From: owner-ti-basic@lists.ticalc.org
> > [mailto:owner-ti-basic@lists.ticalc.org]On Behalf Of Nathan Gaylinn
> > Sent: Wednesday, May 12, 1999 4:30 PM
> > To: ti-basic@lists.ticalc.org
> > Subject: Re: TIB: RE: If-then-goto-end loops can create a problem
> > 
> > if you had something like the following, would it still work? Or would
> > the calc freak out at the extra ends?
> > 
> > If X=2
> > Then
> > Goto 1
> > End
> > Lbl 1
> > End
> > (COMMANDS)...



Follow-Ups: References: