# How to combine Async Action Group and if statement

**URL:** https://www.finalbuilder.com/forums/t/how-to-combine-async-action-group-and-if-statement/7598
**Category:** Discussion
**Created:** [December 31, 2024, 5:23pm UTC](https://www.finalbuilder.com/forums/t/how-to-combine-async-action-group-and-if-statement/7598 "2024-12-31T17:23:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![efridman](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/e/a88e57/32.png) [@efridman](https://www.finalbuilder.com/forums/u/efridman)
#### Post date: [December 31, 2024, 5:23pm UTC](https://www.finalbuilder.com/forums/t/how-to-combine-async-action-group-and-if-statement/7598/1 "2024-12-31T17:23:27Z")

</div>

Hello  
I have some Async Action Group which doing multiple tasks in parallel like copying, deleting etc.  
Problem is that some of the tasks are wrapped by an if statement, meaning something like:  
Async Action Group  
Delete folder C:\AAA  
Delete folder C:\BBB  
If machine name = TEST  
Delete folder C:\CCC

In that case delete of C:\CCC isn’t done with the 2 first actions,  
Is there a better way to do this ?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 12, 2025, 9:07pm UTC](https://www.finalbuilder.com/forums/t/how-to-combine-async-action-group-and-if-statement/7598/2 "2025-01-12T21:07:24Z")

</div>

Hi Elad

Not sure I understand what the problem is - an If action would take less than 1ms to run, so in effect you should not see any difference. The Delete folders might take differing amounts of time depending on their contents.
