And
58pages on
this wiki
this wiki
The and operator is a boolean operator which returns <literal:true>
only if all arguments are true, else returns <literal:false>
.
Its token is named AND.
FDS
Edit
Truth Table
Edit
Inputs | Output | |
---|---|---|
A | B | |
T | T | T |
T | F | F |
F | T | F |
F | F | F |
Example
Edit
If
I have no pants
and
I must scream
then
:
I would
scream without pants
.
That's what I would do
.
This loops the next part of code if the variable Applejack
is equal to 99
and the variable Spike
is equal to 12
.
This is equivalent to the following Java code:
if (iHaveNoPants && iMustScream) { screamWithoutPants(); }
See Also
Edit