1. RE: Why doesn't elseif work?
- Posted by "C. K. Lester" <cklester at yahoo.com> Jun 17, 2003
- 371 views
Notice that it is "elsif" not "elseif" > -----Original Message----- > From: Ray Tomes [mailto:rtomes at ihug.co.nz] > Subject: Why doesn't elseif work? > > > > 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 > > > > TOPICA - Start your own email discussion group. FREE! > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.487 / Virus Database: 286 - Release Date: 6/1/2003 > ---
2. RE: Why doesn't elseif work?
- Posted by Brian Broker <bkb at cnw.com> Jun 17, 2003
- 373 views
That's where a syntax-highlighting editor comes in handy... if the keyword (in this case, "elseif") doesn't change color then it's not spelled correctly... -- Brian 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 > >