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 > ---