Bob Sneidar wrote:
Ahah! So concatenation is not a very high priority when evaluating statements.
I learn something new every day! I can see though why it would be like that. I
could also ask for:
word 1 of "one two" & word 1 of "three four" and expect "one three".
One more argument for grouping with parentheses even when it seems unnecessary.
Sometimes they're not necessary with compound expressions, but even then
they're almost always useful for readability.
I tend to use parens liberally for not only string concats but also for
multi-conditional expressions, e.g.:
if ( (word 1 of tMyVar = "Bob") AND (word 2 of tMyVar = "Sneidar") ) \
OR (tMyVar = "Andre Garzia") then
DoSomething
end if
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode