Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 928 Bytes

and.md

File metadata and controls

19 lines (15 loc) · 928 Bytes

And

One way multiple booleans can be combined is by using the "and" operator - &&.

booleanfunToBeAround = true; booleanbelievesInFundamentalHumanRights = true; booleanwillAskOnDate = funToBeAround && believesInFundamentalHumanRights;

So in this case, I will ask someone on a date if they are fun to be around and they wholeheartedly believe in the assertions made in the Universal Declaration of Human Rights.

funToBeAroundbelievesInFundamentalHumanRightswillAskOnDate
truetruetrue
truefalsefalse
falsetruefalse
falsefalsefalse
close