Page 1 of 1

Train Route AND/OR priority

Posted: Tue Jan 16, 2018 7:28 pm
by gacekssj4
Hello,
Could someone explain me how it exactly works? Can't find any info about it and tried to goole it.

Best on examples:

Code: Select all

true AND true OR true // will eval to true
true AND true OR false // will eval to??
true AND false OR false // will eval to??
true AND false OR true // will eval to?
And/or How is it exactly evaluated

Code: Select all

x AND y OR z
would evaluate as

Code: Select all

(x AND y) OR z 
or

Code: Select all

x AND (y OR z)
and what about

Code: Select all

a AND b AND c OR d AND e

Re: Train Route AND/OR priority

Posted: Tue Jan 16, 2018 10:10 pm
by Loewchen
It should follow: A || B && C ≡ A || (B && C) meaning AND is evaluated first.

Re: Train Route AND/OR priority

Posted: Tue Jan 16, 2018 10:41 pm
by steinio

Re: Train Route AND/OR priority

Posted: Tue Jan 16, 2018 11:04 pm
by DaveMcW

Re: Train Route AND/OR priority

Posted: Thu Jan 18, 2018 12:44 am
by gacekssj4
Thank you v much ;)