Create
Learn
Share

Ruby Truth Tables

rename
yemimage's version from 2016-04-22 18:35

Summary

This page helps you remember the various Ruby truth tables.

NOT

Question Answer
not FalseTrue
not TrueFalse
memorize

OR

Question Answer
True or FalseTrue
True or TrueTrue
False or TrueTrue
False or FalseFalse
memorize

AND

Question Answer
True and FalseFalse
True and TrueTrue
False and TrueFalse
False and FalseFalse
memorize

NOT OR

Question Answer
not (True or False)False
not (True or True)False
not (False or True)False
not (False or False)True
memorize

NOT AND

Question Answer
not (True and False)True
not (True and True)False
not (False and True)True
not (False and False)True
memorize

!=

Question Answer
1 !=0True
1 !=1False
0 !=1True
0 !=0False
memorize

==

Question Answer
1 == 0False
1 == 1True
0 == 1False
0 == 0True
memorize