A binary variable used to take some action, for example in a conditional if…then…. else command in a computer program.
Computer
A variable whose value indicates the attainment of some designated state or condition by an item of equipment or a program. The flag is subsequently used as a basis for conditional branching and similar decision processes. See alsosentinel.
Electronics and Electrical Engineering
A 1-bit register that holds processor-status information, examples being carry flag, negative flag, positive flag, overflow flag, and zero-result flag.