Logic network: do one thing when condition matches and do another thing when it does not
Posted: Mon Jan 22, 2024 5:04 pm
Hi All
I've been trying to implement my first moderately complicted logic expression to control my train at a station. As I mention in another post I need probably 10 combinators or so. I want to try and minimise the number of combinators I use and also avoid duplicating logic.
I have a number of goods that I want to control unloading of. Each good has a different target quantity. For example I want to have 50 power poles off loaded. I set a constant combinator to 50. I then use a decide to calculate if the number of poles in the logistic network is greater than or equal to that. If it is greater than or equal I want my train to leave - that bit is all fine!
How do I use the same combinator to control the inserter that is offloading the train. If I have enough poles then I output 1 from the combinator indicating that the train should leave - how can I turn on the insterter if the value is not set?
It seems that this might not be possible and that I might need to duplicate the logic and the number of poles that I require inside the inserted enablement condition.
Thanks for the help.
I've been trying to implement my first moderately complicted logic expression to control my train at a station. As I mention in another post I need probably 10 combinators or so. I want to try and minimise the number of combinators I use and also avoid duplicating logic.
I have a number of goods that I want to control unloading of. Each good has a different target quantity. For example I want to have 50 power poles off loaded. I set a constant combinator to 50. I then use a decide to calculate if the number of poles in the logistic network is greater than or equal to that. If it is greater than or equal I want my train to leave - that bit is all fine!
How do I use the same combinator to control the inserter that is offloading the train. If I have enough poles then I output 1 from the combinator indicating that the train should leave - how can I turn on the insterter if the value is not set?
It seems that this might not be possible and that I might need to duplicate the logic and the number of poles that I require inside the inserted enablement condition.
Thanks for the help.