binary variable

noun
UK /ˈbaɪ.nər.i ˈveə.ri.ə.bəl/
US /ˈbaɪ.nɚ.i ˈver.i.ə.bəl/

A binary variable is a thing that can only be one of two choices, like yes or no.

The switch is a binary variable because it can only be on or off.


OTHER MEANINGS

2. In statistics, a variable that can take only two possible values, often coded as 0 and 1.

We recorded whether each student passed as a binary variable.

3. In computing, a variable that holds only one of two values, such as true or false.

The program stores the login status in a binary variable.

4. In logic, a variable that can be either true or false.

Each proposition in the truth table is treated as a binary variable.