Power Automate Fundamentals # 59: Usage of Less Function in Power Automate

Introduction:

In Power Platform, at times we must compare values to identify whether the given number is less or not. In Power Automate, Less Function can be used quickly to find out whether the given integer/float is less or not by comparing with a number.

Step 1:                                                                                                                            

Login to the required Power Apps environment using URL make.powerapps.com by providing username and password and click on Flows on the left-hand side as shown in the below figure.

Step 2:

After Step 1, Click on New Flow and select instant cloud flow and provide the trigger as Manually trigger a flow and click on Create as shown in the below figure.

Step 3:

After Step 2, name the flow as Less Function and take an initialize variable and name it as Initialize variable – Age Entry to enter into Park for Children – 5  and provide values

Name: Age

Type: Integer

Value: 5

as shown in the below figure.

Step 4:

After Step 3, take compose action and name it as Compose – Check if the Age is less than 6 and provide less function which expects couple of arguments  and Returns true if the first argument is less than the second with the following syntax

less(value: integer|float|string, compareTo: integer|float|string)

and provide inputs as

less(variables(‘Age’),6)

as shown in the below figure.

Step 5:

After Step 4, take compose action and name it as Compose – Check if the Age is less than 3 and provide the following inputs

Inputs : less(variables(‘Age’),3)

as shown in the below figure.

Step 6:

After Step 5,save and test the flow and observe the results as shown in the below figure.

Note:

  1. Make sure to save and run the flow whenever you try expressions.
  2. In this example provided only integer as argument, float and string values can also be provided.

Conclusion: In this way we can use less function in power automate to achieve customer functionality to easily verify whether the given number is less or not.

One thought on “Power Automate Fundamentals # 59: Usage of Less Function in Power Automate

  1. Pingback: Rewind February 2022 – Common Man Tips for Power Platform, Dynamics CRM,Azure

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s