# AWX: Conditionally choose a workflow branch

**URL:** <https://forum.ansible.com/t/awx-conditionally-choose-a-workflow-branch/35807>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 30, 2021, 3:53pm UTC](https://forum.ansible.com/t/awx-conditionally-choose-a-workflow-branch/35807 "2021-09-30T15:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manivarnan\_Padmanabh](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Manivarnan\_Padmanabh](https://forum.ansible.com/u/Manivarnan_Padmanabh)\
**Post date:** [September 30, 2021, 3:53pm UTC](https://forum.ansible.com/t/awx-conditionally-choose-a-workflow-branch/35807/1 "2021-09-30T15:53:00Z")

</div>

Hello Everyone,

I am using AWX 17.1  
I have a workflow with multiple branches of job templates. Is there a way to conditionally choose a job template based on a variable value?  
Something like If  
var = a, run Job Template A  
var = b, run Job Template b

I do not prefer to use “on failure” way in workflow because it marks the entire workflow status as failed regardless of the status of successfully executed branches in the workflow.

Thanks  
Mani.
