I am trying to control the unloading of a train at one of my stations. The expression I want to evaluate is something like this (where T = train count and B = base count)
(Bammo > 500 || Tammo == 0 ) && (BOil > 20000 || TOil == 0) && (BRobot > 50 || TRobot == 0) && (BRepairPack > 50 || TRepairPack = 0)
so it seems to me that I need a whole load of combinators for this...
- I need 8 combinators to evaluate each of the expressions (Bammo > 500)
- I need 4 combaintors to OR the base / train expressions
- I need 3 combinators to AND the 4 expressions in a tree structure (2 combinators AND 2 goods each, third combinator then ANDs those 2 combinators)
For ANDing all the individual goods the EVERY operator is pretty useful... but not quite. As each decider outpus 1 or nothing I can't use Every as if a combinator evaluates to false it just doesn't output anything. Is there a way around this?
Many Thanks