Knowledge Base

Boolean Comparison Block

output-onlinepngtools__231_.png  This block works for both EV3 Robot and for Ruby Robot!  output-onlinepngtools__101_.png


The Boolean Comparison block compares two values and returns a Boolean value (True/False).

Use the Boolean Comparison block's drop-down menu to select a  comparison operator. 


Example Program

This program checks if the value returned by the Ultrasonic sensor is more than 30. While the value is more than the 30, the robot drives forward at 100% power.


Description Compatible Blocks Range

Compares two values and returns a Boolean value (True/False).

-∞ to ∞


Was this article helpful?
1 out of 1 found this helpful


Please sign in to leave a comment.