This code is tiresome to write, and difficult to read too. How do I write codes to test multiple conditions more conveniently?if ($value1 == 30) { if ($value2 > 0 ) { if ($string1 eq "winner" ) { print ("You are a WINNER!\n"); } } }
In reply to Logical Operators by Zombie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |