Universeorange.com/Docs/

R3m/framework Function reference if

{if(expresion)}
    statement
{else.if(expresion)}
    statement
{else}
    statement
{/if}    

The if construct is one of the most important features of many languages, PHP included.
It allows for conditional execution of code fragments.
PHP features an if structure that is similar to that of C:

As described in the section about expressions, expression is evaluated to its Boolean value. If expression evaluates to true, PHP will execute statement, and if it evaluates to false - it'll ignore it.
More information about what values evaluate to false can be found in the 'Converting to boolean' section.

If statements can be nested infinitely within other if statements, which provides you with complete flexibility for conditional execution of the various parts of your program.

More information:

https://www.php.net/manual/en/control-structures.if.php

Last modified: 2021-06-07

© 2021 universeorange.com