# How do I Use the Three 'Equal' Blocks in App Inventor?

Hi everyone. I'm trying to figure out how to use these three equal sign blocks, but I don't know how. Could somebody help me please?

From the documentation!

http://ai2.appinventor.mit.edu/reference/blocks/logic.html#=

### = {#=}

Tests whether its arguments are equal.

• Two numbers are equal if they are numerically equal, for example, 1 is equal to 1.0.
• Two text blocks are equal if they have the same characters in the same order, with the same case. For example, banana is not equal to Banana.
• Numbers and text are equal if the number is numerically equal to a number that would be printed with that text. For example, 12.0 is equal to the result of joining the first character of 1A to the last character of Teafor2.
• Two lists are equal if they have the same number of elements and the corresponding elements are equal.

Acts exactly the same as the = block found in Math

### ≠ {#not=}

Tests to see whether two arguments are not equal.

http://ai2.appinventor.mit.edu/reference/blocks/math.html#=

### = {#=}

Tests whether two numbers are equal and returns true or false.

### ≠ {#not=}

Tests whether two numbers are not equal and returns true or false.

http://ai2.appinventor.mit.edu/reference/blocks/text.html#compare

### compare texts < > = ≠

Returns whether or not the first string is lexicographically <, >, =, or ≠ the second string depending on which dropdown is selected.

A string a considered lexicographically greater than another if it is alphabetically greater than the other string. Essentially, it would come after it in the dictionary. All uppercase letters are considered smaller or to occur before lowercase letters. cat would be > Cat.

2 Likes

you can try like this:
`IF a=b or b=c or a=c where a,b,c are the items you want to compare.`

Thanks for the links!

OK I'll try

If you want the condition to work only when a=b=c (all are equal) then use and instead of or in the blocks I sent...
Here is an pic

You can use the Setting symbol to add another and in the same block.

Hope this helps!

UPDATE: Oh Sorry! I actually misunderstood your question @Gordon_Lu. I now understand what are you trying to say....

In your blocks you can remove “and a = c”.

If a = b, and b = c then a = c by default.

Yes, Thank you. I think I actually did know that but I wrote this so that everyone is able to understand easily. Rest all is your creativity!
P.S.: My answer has very little relation with the question in the topic.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.