If Then Else Issue with wrong logic

Hi,
I have a rule that is not behaving as expected. Rule Machine 5.1

Looking at line 8 ....Cabinet(3) is < 10.0(T)(F)[FALSE]
I can 't understand why the logic expression is [FALSE] as the power value is 3 which is less than 10. The logs also confirm that is what it is using but the sendSavedCode line is not executed.

Additionally the (T) I assume means that the expression is True. What is the (F) following it referring to?
I assume that that the [FALSE] referrs to the total statement logic being False due to the (F) following the (T) on that line.

Similarly why the double (F)(F) on the first line?

Thank You

1 Like

That plus the other line with doubles that you mentioned are definitely a problem. You may be able to find some way to edit the expression to remove the "phantom" condition (the likely cause, something you can't see that may be the result of an error during creation or editing or perhaps a device that was removed from your hub without removing it from the rule first).

If not, just deleting that whole expression or even the entire line and redoing it should work.

1 Like

Thanks, I had to reconstruct the line but could reuse the condition and that fixed the issue. Now I know phantom conditions can exist that will assist in any future debugging.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.