I've heard the term "flag" get used in Videogames, so far only in RPGs like the Final Fantasy games (actually on the FF games, but I assume it's on others, so I'm asking on General Gaming).

I often see it in Debug Menus such as "Resset all Flags". Anyone know what they are?