two-valued variable
nounUK /tuː ˈvæljuːd ˈveəriəbl/
US /tuː ˈvæljuːd ˈveriəbl/
A two-valued variable is a thing that can only be one of two choices, like yes or no.
The light switch is a two-valued variable because it is either on or off.
RELATED WORDS
OTHER MEANINGS
2. In math and logic, a variable that can take exactly two possible values, often true and false.
In the statement 'the door is open,' the door's state is a two-valued variable.
3. In computing, a variable that stores only one of two states, such as 0 or 1.
The program uses a two-valued variable to remember whether the user is logged in.
4. In statistics, a variable with only two possible categories, like male or female.
The survey asked a two-valued variable question: do you own a pet, yes or no?