Re: Small feature request for future EU versions
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Oct 18, 2004
- 732 views
On Mon, 18 Oct 2004 09:52:19 +1000, Patrick Barnes <mrtrick at gmail.com> wrote: >The problem is that the IF statement doesn't know what to do with a >sequence, and there's not an obvious solution. Actually there is: the interpreter can easily determine when it needs a boolean result, eg in an if statement, so it simply maps relational operators to equal()/compare(). >Why can't I just use '=' to compare these strings? Trust me, this can be done for any reasonable expression, eg if name="pete" then or if forename="pete" and surname="lomax" then but not if {1,2,3}+{4,5,6} then I'll give it a go if/when I get 2.5 Regards, Pete