Conditions Examples


Example of using if/else Condition:
20 multiplied by 50 plus 100 should equal 1100

Example of using Case:
My favorite artist is BIBI!

Explanation:
Conditions allows for the use of logic in PHP, but it also works well with operators. Not only if/else conditions are used, but Case are best used to make the code look cleaner in some occasions.