Why doesn't elseif work?

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu