1. RE: Why doesn't elseif work?

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

new topic     » topic index » view message » categorize

2. RE: Why doesn't elseif work?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu