Power Automate Functions - Greater or Equal Function

Power Automate Functions - Greater or Equal Function

What is Greater or Equal function?

The greater or equal function is used to return true or false if you initialize an integer variable having value 10 then check it using compose action by passing a value like seven checks 10 is greater or equal to 7. If its function returns true otherwise false.

Description:

In this guide, we will discuss how to use the float function in power automation. Let us create a new flow. To create a new flow follow the following instructions:

Go to power Power Apps:

Power Automate Functions - Greater or Equal Function

Navigate to Flows:
Power Automate Functions - Greater or Equal Function

Click on the ‘New Flow’ button:
Power Automate Functions - Greater or Equal Function

After clicking new flow, select ‘Instant Cloud flow’ from the dropdown:
Power Automate Functions - Greater or Equal Function

Finally set its name and select ‘manually’ as flow trigger point:
In the below screenshot we set the Name of flow and its trigger point which is ‘Manually trigger a flow. Finally, click on the create button to create a new flow. 
Power Automate Functions - Greater or Equal Function

First, add INITIALIZE VARIABLE ACTION:
To initialize a variable select initialize variable action from the actions set. Then set its properties the same as mentioned in the screenshot.
Power Automate Functions - Greater or Equal Function
Add a COMPOSE ACTION to return true or false:
Compose action check that 10 is greater than seven are or not. If it is, it will return true
I pass five numbers in the function 
Power Automate Functions - Greater or Equal Function

 Output:
Power Automate Functions - Greater or Equal Function


Add another COMPOSE ACTION to compose it with other values:
Power Automate Functions - Greater or Equal Function

Code:
GreaterOrEquals (variables ('Integer Variable'), 10)
Output:
Power Automate Functions - Greater or Equal Function

Add another COMPOSE ACTION and pass 15 in it:
Power Automate Functions - Greater or Equal Function

Code:
GreaterOrEquals (variables ('Integer Variable'), 15)
Output:
Power Automate Functions - Greater or Equal Function


Greater Function
What is a greater function?
The greater function is used to return ‘TRUE OR FALSE’. It had two values. Its job is to compare them and find greater or equal.
Function:
The greater function is used to perform this functionality.
Same as previous ADD INITIALIZE VARIABLE action. Set its attributes like:
Name:
Type: integer
Value: 10
Power Automate Functions - Greater or Equal Function

Secondly, add a compose action:
Power Automate Functions - Greater or Equal Function
It will call ‘greater function’ to decide about the return value
Code:
greater(variables('Integer Variable'), 2)
Output:
 
Power Automate Functions - Greater or Equal Function



Less Function
Less Function?
Less function is used to return ‘TRUE OR FALSE’ on the behalf of given value and value that we pass in a function. This function is used to make decisions on behalf of two given values and return ‘TRUE OR FALSE’.
Add an ‘INITIALIZE VARIABLE’ ACTION to add a variable:
Power Automate Functions - Greater or Equal Function

Add compose action and call ‘less function’ in it using expression editor:
Power Automate Functions - Greater or Equal Function

Code:
less(variables('Integer Variable'),7)
Output:
Power Automate Functions - Greater or Equal Function



0 Comments

Thanks for commenting. Your comment will be live soon after approval.