Re: Another Error

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

don cole wrote:
> Back to the origtinal question
> true/false condition must be an ATOM 
>  if Correct = 'y' or Correct = 'Y' then(line24)
> sequence FactionName, FactionPassword, Correct
> 
> Correct here is definately not an atom but a sequence.

Agreed, but the statement in question is not

  if Correct then

also the expression 'equal(Correct, "Y")' is also not an atom but it works
because it is evaluated and returns an atom.

My problem is that 

   Correct = "Y" 

evaluates to a sequence rather than to an atom, in the context of an IF
statement. If the rules were changed so that it did what it looks like its trying
to do, no existing code would be broken and future code would be easier to write
and read.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu