Fixed value
1000: the threshold we type into the condition.
Copy the working Excel flow, then add a condition to decide whether each row should produce an email.
Guided practice · Condition & your first expressionIn the previous lab, every row produced an email. Now we want emails only for requests whose estimated cost is greater than 1000.
A Condition is a control that compares values and chooses a branch. If the comparison is true, it runs the actions in True. Otherwise, it runs False. A branch can be empty when no action is needed.
Place the condition inside Apply to each, so it checks the current row on every iteration. All five rows are processed, but only qualifying rows send an email.
Start with Purchases from Excel and the same five-row workbook. Name the copy Purchases from Excel — Greater than 1000. No changes to the workbook are needed.
Save As creates a separate flow. The original remains available for comparison. The screenshots use earlier working names; use the name above for your copy.
The copy dialog explains that the new flow is off by default. After editing and saving, enable the copy before testing. The toggle screenshot below shows the off position.



The copied email action is still there. The screenshot shows the condition below it as an intermediate step. We will move the email into True before testing.
A condition compares a left value with a right value using an operator, such as is greater than. This lab needs one comparison row.


So far, we have typed fixed text or selected dynamic content. The fx button opens the expression editor, where you can write a small formula to calculate, transform, or convert a value.
1000: the threshold we type into the condition.
Estimated cost: the value supplied by the current Excel row.
float(...): convert that supplied value into a number before comparing it.
In this example, Excel returns the cost as text, such as "1500". Comparing that text directly with the number 1000 causes a String/Integer type mismatch. The float() function converts numeric text into a number, including decimal amounts.
No variable is needed. We only convert the current value for the comparison.
float(item()?['Estimated cost'])
| Left value | Operator | Right value |
|---|---|---|
float(item()?['Estimated cost']) | is greater than | 1000 |
The first screenshot shows expression entry in progress. Enter the full expression shown in the second screenshot. Keep only one comparison row; remove any extra empty rows added accidentally.


An email before the condition would still run for every row. Inside True, it runs only when the current cost passes the comparison. An empty False branch simply does no additional work for that row.

Keep the current-row tokens in the email body and your training mailbox in To. Update the subject to combine Item name dynamic content with the fixed text — greater than 1000.
[Item name] — greater than 1000
The screenshot’s subject contains “greated”; use “greater” in your own flow.
Check the full flow: manual trigger → read Excel rows → Apply to each → Condition → email in True. Select Save, return to the flow details, and ensure the copy is enabled.


Use Test → Manually → Test, confirm the connections, and run the copied flow. It should evaluate five rows and send two emails.
| Item | Cost | Cost > 1000? | Email? |
|---|---|---|---|
| Monitor | 850 | False | No |
| Office chairs | 1500 | True | Yes |
| Keyboard | 150 | False | No |
| Meeting room screen | 3000 | True | Yes |
| Headset | 250 | False | No |
Expand Apply to each in the completed run. 1 of 5 means the first of five iterations is selected. Use the arrows to inspect other rows, open the Condition result, and see which branch ran. A green check on Condition means it evaluated successfully; it does not by itself mean its comparison was True.
For a nonqualifying row, the email in True is skipped. That is expected behaviour, not a failed email. In Outlook, identify the two new messages by their subject suffix; older messages from the loop-only lab may still be visible.


Try a variation: change the threshold to 1500. With “is greater than,” Office chairs at exactly 1500 no longer qualifies; only Meeting room screen does. Update the subject to match your new threshold before testing.