Creates an if else statement

    0

    1

    lucycodes42

    C# recipes

    The code if (true) executes the block of code between the curly braces if the condition is true. If the condition is not true, the code between the curly braces else executes.

    Shortcut: ifelse

    if (true)
    {
      
    }
    else
    {
      
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.