Apparently the CircuitCondition struct table thing has a "fulfilled" property. Handy and entirely practical. See (viewtopic.php?p=179527#p179527)
Unfortunately the API docs are missing this important tidbit of information. (http://lua-api.factorio.com/0.13.6/Conc ... tCondition).
Disclaimer: I have not personally verified the existence of the property, but present the first linked post as evidence.
Cheers!
[0.13.6]CircuitCondition.fulfilled missing from API docs
Re: [0.13.6]CircuitCondition.fulfilled missing from API docs
Nice find.
fulfilled actually doesn't belong to CircuitCondition – rather the type circuit_condition of various behaviours is a table {condition, fulfilled}.
This'll be fixed in 0.13.7 docs.
fulfilled actually doesn't belong to CircuitCondition – rather the type circuit_condition of various behaviours is a table {condition, fulfilled}.
This'll be fixed in 0.13.7 docs.