Browse the docs

State is on

Passes while a named State, such as Deep work, is on; negate it for "not in".

State name is on

Details #

Passes while the State is on. Use it as an Only if or in an If step. Every condition accepts "negate": true, which flips the verdict, so "not in Deep work" is the same condition negated.

A State that does not exist is an error, so a typo shows up in the trace instead of silently never running.

Parameters #

ParameterTypeRequiredValuesWhat it does
nametextYesRequired. The State's name.

Examples #

Only offer the reply template outside Deep work
When
  1. Press ⌃⌥R
Only if
  1. If the State “Deep work” is off
Do
  1. Type “Thanks, I will get back to you.”
Open in Switchboard to try it

See also #

A State starts or ends, state(), Triggers that watch: becomes true, States, waiting runs