Share via


false Literal (C# Reference)

Represents the boolean value false.

Example

class TestClass
{
    static void Main() 
    {
        bool a = false;
        Console.WriteLine( a ? "yes" : "no" );
    }
}
// Output: no

C# Language Specification

For more information, see the following sections in the C# Language Specification:

  • 2.4.4.1 Boolean literals

See Also

Concepts

C# Programming Guide

Reference

C# Keywords

true (C# Reference)

Other Resources

C# Reference