equals function(Power Automate Cloud flows)

Japanese version.

It compares the two values of the argument and determines True if they are the same and False if they are different.

Spec

equals(<object1>,<object2>)
ArgumentDefaultDescription
object1 and 2Required fieldValue to judge

How to use

Often used in "Condition".

It is frequently used among the "value" in "Initialize variable" or "Set variable" of Type "Boolean".

Click on the "Expressions" tab, equals, and the function name and () will be set in the formula field.

Specify two or more values in it.

If you want to use dynamic contents or variables, specify them specially.

(How to get dynamic content with an expression)

If you see something like the following, your settings are complete.

Click on the purple icon to change the function.

As in the example equals('123', '123'),

The result of equals is True because the two arguments have the same value.

If the two arguments are different, the result is False.

Set this function (or variable) to the left of the "Condition", "is equal to" in the middle, and "true" on the right.

Then the behavior is true for "If yes" and false for "If no".

Different data types can be compared, though,

False in cases such as '123' and 123.

In the case of arrays, False is returned if the items are not the same, including their order.

object1object2Result
123123True
123'123'False
'123''123'True
[1,2,3][1,2,3]True
[1,3,2][1,2,3]False
Example of function result.

---

Links

Logical Functions