if (cond):
      elseif (cond):
      else:
      endif;

      Php language logoifelseifend

      PHP recipes

      The code above evaluates the conditional expressions and ensures that the first matching condition is True. If no condition matches, the elseif is evaluated and so on. The code will ultimately end with an endif block that will execute the code in the else block if the evaluation of the conditional expressions concludes that there is no match.

      Shortcut: ifelseifend

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.