Re: Parametric Signals - Is there a bug, or am I misunderstanding them?
Posted: Sun Nov 09, 2025 1:50 pm
This is because of how the circuit network works. The network isn't comparing Coal(1) and Iron(1) - it's comparing (1) and (1).SpoonUnit wrote: Sat Nov 08, 2025 11:35 am Incidentally, why does it evaluate Coal(1) as equal to Iron(1) here?
Maybe think about the signals as being labels for the number. The circuit looks up the value for the signal labelled Coal, then looks up the value for the signal labelled Iron. Since both values equal 1, the condition returns true.
I think this is the fundamental reason you're getting confused with your other conditions - The condition "<Circuit parameter> == Stone", for example, will always be true for the substitution of Stone for the parameter, since you're comparing it against itself. This explains why the interrupt triggers for the stone signal even when it's not present.
Maybe the condition you're looking for is "<Circuit parameter> > 0". This will trigger the interrupt whenever the signal value is present at the station.