EV3-G Compare Block

Compare allows you to compare two numeric values with Equal To, Not Equal To, Greater Than, Greater Than or Equal To, Less Than, or Less Than or Equal To. Using the Math programming block and a Switch, you can set it up to have different reactions depending on the result. There is an example below.

You can see that the set-up is for a certain equation, and whatever is the lesser amount will trigger the positive action. You can easily change the constant to something else if you want to see a different result, and change the inequality sign as well.

13,219 total views, 1 views today

Short URL: http://tinyurl.com/yca2w22v
   Send article as PDF   
Post Tagged with , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Do NOT follow this link or you will be banned from the site!