[0.15.11] circuit_condition rejects new comparator signals
Posted: Wed May 17, 2017 1:49 pm
When setting the condition on a lamp to Any!=0 with the following code:
I get an error that != is an Invalid Type Sign. Using '≠' in its place does work. The the docs indicate that != <= and >= should also work when looking at conditions on a Decider Combinator, and don't list what symbols to use for these operations at all on other circuit entities
Code: Select all
local control = entity.get_or_create_control_behavior()
if control.use_colors then
control.circuit_condition = {
condition={
first_signal={name="signal-anything",type="virtual"},
comparator="!=",
constant=0,
second_signal=nil
},
connect_to_logistic_network=false
}
end