just with the difference of the phase number. HOW COME the phase2 condition comes up true???
The conditions are wrong also in the scrachpad.
That is impossible. if I play in the limit slider I noticed that it this condition changes to false when LOAD_phase_limit.state is 2000 as if the LOAD_phase_2_power.state is taken into this condition multipied by 10, but then when set to 600 is evaluated false for all 3 phases so in that moment phase_1 and phase_3 is wrong. so it is random.
Allow me to add - there is a small difference between the answers:
parseFloat will only parse an input up to the point where it stops making sense, and return that number. For example, numbers with units after the number can be parsed because the number comes before the unit: