Re: if statement not working

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

rforno wrote:

> if s[1..2] = "/*" then ...
> could never work fine. It gives an error message telling conditions must be
> atoms.

Yes, and that's perhaps the most suprising bit of all. You'd sort of expect 
that with an emphasis on being orthagonal, the 'if' would accept {0, 0} as 
false, and { 0, 1 } as true.

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu