Train Route AND/OR priority

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
gacekssj4
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Wed Jun 01, 2016 9:54 pm
Contact:

Train Route AND/OR priority

Post 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

Loewchen
Global Moderator
Global Moderator
Posts: 8283
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Train Route AND/OR priority

Post by Loewchen »

It should follow: A || B && C ≡ A || (B && C) meaning AND is evaluated first.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2631
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Train Route AND/OR priority

Post by steinio »

Image

Transport Belt Repair Man

View unread Posts

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Train Route AND/OR priority

Post by DaveMcW »


gacekssj4
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Wed Jun 01, 2016 9:54 pm
Contact:

Re: Train Route AND/OR priority

Post by gacekssj4 »

Thank you v much ;)

Post Reply

Return to “Gameplay Help”