121
15. ( ) and( )
(1) Description: Return the condition “True” when two conditions are met; otherwise, the condition “False” is returned.
(2) Return value: Boolean
(3) Example: Clap to summon the robot
When a person stands one meter away from the robot and claps twice, the robot will approach. Both “Person” and “Clap two
times” are essential conditions, and thus use “AND.”
Note:
“and,” “or,” and “not” are logical operations, and the returned result will be a Boolean value: “True,” or “False.”
The “and” of Boolean truth list:
16. ( ) or ( )
(1) Description: Return “True” if either condition is met; or “False” if neither condition is met.
(2) Return value: Boolean