All Subjects
Light
In programming, a flag is a variable or condition that acts as a signal or indicator. It helps control the flow of execution within a program.
Boolean flag: A flag that can have only two values - true or false.
Flag variable: A variable used as a flag to indicate whether certain conditions are met.
SetFlag() function: A function used to set or change the value of a flag.