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.

For those who want to learn Power Automate Cloud flow effectively

The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.

Links

Logical Functions