Proper way to check a sensor value during a sequence?

Hey everyone. Need some advice from the brain trust.

I’m in the process of setting up a Node Red sequence that, once triggered, checks for a sensor value (on or off) before continuing the sequence. The value of the sensor should determine the next step sequence.

This is where things get fuzzy for me. I’m not quite sure how to go about configuring a node to alter the message. Should I be using the HA Current State node? If so, how do I configure the node so that it correctly functions based on the sensor value?

Hopefully my question makes sense. Let me know if I need to add more context.

On the assumption that you want the message to go one way if on, and another if off, you can configure the current state node with “if state > is > on”. Then you will get two anchor points on the right of the node, one if true (ie. on) and one if false (ie. off).

You can also delete (or change) the output properties so the results of the current state node do not overwrite the message.