Everyone knows that a real Boolean has three states: True, False, and FileNotFound.

This naming conundrum has left many to wonder, if Booleans have three states, what does that make a Tri-State? It's a good question, and one that Peter Bronk has had the unfortunate pleasure of being able to answer. Found deep within the bowels of a big, contrived, and clumsy legacy product, he found a real Tri-State.

    enum TRI_STATE {
        TS_UNKNOWN,
        TS_MORNING,
        TS_EVENING,
        TS_INTRADAY,
        TS_NO
    };
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!