Advertisement
RahmanIEN

op logika AND

Jun 22nd, 2023 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | Source Code | 0 0
  1. <?php
  2. $a = true;
  3. $b = false;
  4. if ($a && $b) {
  5.     echo "Kedua kondisi bernilai true";
  6. } else {
  7.     echo "Salah satu kondisi (atau keduanya) bernilai false";
  8. }
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement