Ruby:NOT of a Condition

From Progzoo
Jump to navigation Jump to search

There are several logical operators:

&&
||
!

We can invert a condition using !

(Note: When if is used with !, we can instead write unless as in unless name.include?("a"). Similarly, when while is used with !, we can instead write until.)

Which countries do not have an "a" in the name.

[Font] [Default] [Show] [Resize] [History] [Profile]