IF/ELSE

    0

    21

    Daniel Garcia

    ColdFusion

    The above code assigns the value true to the variable isValid and then checks the value of the variable. If isValid is true, the code writes "Record is valid" to the output. If isValid is false, the code writes "Record is not valid" to the output.

    isValid = true;
    if ( isValid ) {
      writeOutput( "Record is valid" ); 
    } else {
      writeOutput( "Record is not valid" ); 
    }
    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.