Re: Syntax for OR
- Posted by jimcbrown (admin) Mar 04, 2015
- 1672 views
I'm sorry Lonny, but what isn't correct?
Erm, you state it below:
It is incorrect that if A = (B or C) ... is equivalent to if (A = B) or (A = C) then ...
From the context of the original post, I interpreted katsmeow's post to mean:
- if A = (B or C) ... is equivalent to if (A = B) or (A = C) then ...##
And I think that's a reasonable interpretation of katsmeow's words.
So without that sort of context, it would be presumptuous to assume that Kat's code is "incorrect".
I would think OP's post provides enough context... if katsmeow intended to speak about something different, then I think that katsmeow should have provided additional context herself to make this clear. (OTOH, when posting in a hurry or on the run, it's possible to make minor mistakes and forget to include things. It happens, it's no big deal, the important bit is to obtain clarification after the fact. It's also possible that this is a "joke" post, where katsmeow is trying to alert the OP about the possible traps due to the lack of an explicit boolean type in Euphoria - but in that case, some initial confusion is to be expected.)
if we knew what the code intended by the code.
After spending several minutes rereading this line, I still do not understand what it means.