In this section, we'll extend our code with "boolean logic" .. using and or to combine multiple true/false tests.
|
Change the code below so it prints rows where the following is true:
Name starts with "A" and rank is <= 50
|
Now do an example with or || -- change the code below to print rows where the following is true:
Name starts with "X" or name starts with "Y" or name starts with "Z"
|
Here is the working code for the Popular A names test mentioned above.
|
Experiments to try:
Experiment solution code: