Condition for activating different branches

Hi Benjamin,

it could be related to the use of “is” which is preferably to be used when comparing uniquely defined items in Python such as None, True, False.

I made a quick comparison between dog and cat to see the effect: :slight_smile:

>>> "dog" is "cat"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
False
>>> "dog" == "cat"
False
>>> "dog" is "dog"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
True
>>> "dog" != "cat"
True

Can you test it with “==” as comparator?

The syntax in Condition module basically follows the Python syntax.

You can get further debug information from the Condition module by right-clicking into the module and activate the Debug flag. Then, further output is presented in the Debug widget as shown in the screenshot in this reply:

Let us know if it works or further help is needed.

Regarding the action that you used: The action “run” is starting a measurement and thus will be omitted here as the run is already running. If you like to do nothing, it means just proceed, then you can keep the field empty.

You can also reverse the comparator by using “!=” to check for a difference and move “skip_sweeps_below” to the “Then” box.

If you like to add empty lines in your Form, this is possible by adding a Label with no text.

Hope this helps!
Best, Axel