Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- # This file is used to teach the very basics of conditionals.
- $bank_balance = "5751";
- # we wil lbe changing the value below and see how our condition changes:
- $withdrawal_amount = "5751";
- echo "<p>Your bank balance is: $bank_balance</p>";
- echo "<p>The amount you want to withdrawal is: $withdrawal_amount</p>";
- if ($bank_balance > $withdrawal_amount) {
- echo "You have enough money to make this withdrawl";
- } elseif ($bank_balance < $withdrawal_amount) {
- echo "You don't have enough to make this withdrawal!";
- } elseif ($bank_balance == $withdrawal_amount) {
- echo "You want to ake out ALL your money?! ok....";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement