two-state variable
nounUK /tuː steɪt ˈveəriəbl/
US /tu steɪt ˈveriəbl/
A two-state variable is a thing that can only be on or off.
The light switch is a two-state variable because it is either on or off.
OTHER MEANINGS
2. In computing, a variable that can hold only one of two possible values, such as true or false.
The program uses a two-state variable to remember whether the user is logged in.
3. In physics, a quantity that can exist in only two distinct conditions, such as spin up or spin down.
The electron's spin is a two-state variable.
4. In statistics, a variable with exactly two possible categories, such as yes or no.
We recorded whether each patient recovered as a two-state variable.