1. Why doesn't elseif work?
- Posted by Ray Tomes <rtomes at ihug.co.nz> Jun 17, 2003
- 432 views
G'day The if statement says you can use elseif and gives the following example: if char = 'a' then x = 1 elsif char = 'b' or char = 'B' then x = 2 elsif char = 'c' then x = 3 else x = -1 end if However when I use elseif it says "elseif" hasn't been declared. "if" doesn't say it needs any includes, so what gives? Ray Tomes
2. Re: Why doesn't elseif work?
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 17, 2003
- 416 views
On Tue, 17 Jun 2003 13:38:24 +1200 (06/17/03 11:38:24) , Ray Tomes <rtomes at ihug.co.nz> wrote: > > > G'day > > The if statement says you can use elseif and gives the following example: > > if char = 'a' then > x = 1 > elsif char = 'b' or char = 'B' then > x = 2 > elsif char = 'c' then > x = 3 > else > x = -1 > end if > > However when I use elseif it says "elseif" hasn't been declared. > "if" doesn't say it needs any includes, so what gives? > Just a simple spelling mistake. The word to use is "elsif" and not "elseif". -- cheers, Derek Parnell
3. Re: Why doesn't elseif work?
- Posted by Ray Tomes <rtomes at ihug.co.nz> Jun 17, 2003
- 416 views
C. K. Lester wrote: > Notice that it is "elsif" not "elseif" Hi C.K. LOL! How many times have I looked at that and not seen it! How many people fall into that hole? Thanks Ray
4. Re: Why doesn't elseif work?
- Posted by Guillermo Bonvehi <knixeur at speedy.com.ar> Jun 17, 2003
- 405 views
by TDIMSO15.backend.tdata.com.ar (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0HGL00LKFTC9X4 at TDIMSO15.backend.tdata.com.ar> for EUforum at topica.com; Mon, 16 Jun 2003 23:24:10 -0300 (GMT) X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4; MultiZi= lla v1.4.0.4A) Gecko/20030529 <39506755-1463747838-1055815387 at boing.topica.com> Ray Tomes wrote: > > C. K. Lester wrote: > >> Notice that it is "elsif" not "elseif" > > > Hi C.K. > > LOL! How many times have I looked at that and not seen it! > How many people fall into that hole? > > Thanks > > Ray=20 A lot! :) Welcome to the community Best Regards, Guillermo Bonveh=ED
5. Re: Why doesn't elseif work?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Jun 17, 2003
- 405 views
Lots & lots & lots &....well, at least *me*!! :) It was hard to break myself of the habit of spelling it "right" (elseif) in order to be right (elsif). Dan Moyer ----- Original Message ----- From: "Ray Tomes" <rtomes at ihug.co.nz> To: "EUforum" <EUforum at topica.com> Subject: Re: Why doesn't elseif work? > > > C. K. Lester wrote: > > > Notice that it is "elsif" not "elseif" > > Hi C.K. > > LOL! How many times have I looked at that and not seen it! > How many people fall into that hole? > > Thanks > > Ray > > > > TOPICA - Start your own email discussion group. FREE! > >
6. Re: Why doesn't elseif work?
- Posted by Dan Moyer <DANIELMOYER at prodigy.net> Jun 17, 2003
- 445 views
Guillermo, Your posts are getting messed up, see below. Dan Moyer ----- Original Message ----- From: "Guillermo Bonvehi" <knixeur at speedy.com.ar> To: "EUforum" <EUforum at topica.com> Subject: Re: Why doesn't elseif work? > > by TDIMSO15.backend.tdata.com.ar > (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) > with ESMTP id <0HGL00LKFTC9X4 at TDIMSO15.backend.tdata.com.ar> for > EUforum at topica.com; Mon, 16 Jun 2003 23:24:10 -0300 (GMT) > In-reply-to: <39506755-1463747838-1055815387 at boing.topica.com> > MIME-version: 1.0 > Content-type: text/plain; charset=3Dwindows-1252; format=3Dflowed > Content-transfer-encoding: 8BIT > X-Accept-Language: en-us, en > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4; MultiZi= > lla > v1.4.0.4A) Gecko/20030529 > References: <609681902-1463792126-1055814242 at boing.topica.com> > <39506755-1463747838-1055815387 at boing.topica.com> > > Ray Tomes wrote: > > > > > C. K. Lester wrote: > > > >> Notice that it is "elsif" not "elseif" > > > > > > Hi C.K. > > > > LOL! How many times have I looked at that and not seen it! > > How many people fall into that hole? > > > > Thanks > > > > Ray=20 > > A lot! :) > Welcome to the community > > Best Regards, > Guillermo Bonveh=ED > > > > TOPICA - Start your own email discussion group. FREE! > >