By: Dusty Arlia
Published on October 24, 2012
Last Updated on Wednesday, July 08, 2015 at 10:49 PM
Total Updates: 2

When programming, sometimes you will use a flag to mark something as true or false. The term flag can be used to describe a variable which holds a true or false value. Based on the flag's value will determine how the program will execute. These variables are called flags because they can hold one of two values (true or false) just like a flag can either be up or down.