# Conditional Steps (multiple) Run? Execution Node Syntax for Jenkinsfile

**URL:** <https://community.jenkins.io/t/conditional-steps-multiple-run-execution-node-syntax-for-jenkinsfile/2685>\
**Category:** Ask a question\
**Created:** [June 9, 2022, 9:45am UTC](https://community.jenkins.io/t/conditional-steps-multiple-run-execution-node-syntax-for-jenkinsfile/2685 "2022-06-09T09:45:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darryl](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@darryl](https://community.jenkins.io/u/darryl)\
**Post date:** [June 9, 2022, 9:45am UTC](https://community.jenkins.io/t/conditional-steps-multiple-run-execution-node-syntax-for-jenkinsfile/2685/1 "2022-06-09T09:45:02Z")

</div>

Hi All,

We are migrating a job to a jenkinsfile and I would like to ask what would be the possible syntax for the image below: I could not find any example online with this Conditional Steps (multiple) \> Run? \> Execution node.

![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/11e1cfc4f8c7fe44a24f110963aa3fddf4a26d4a.png)

Thank you very much.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [June 9, 2022, 3:44pm UTC](https://community.jenkins.io/t/conditional-steps-multiple-run-execution-node-syntax-for-jenkinsfile/2685/2 "2022-06-09T15:44:23Z")

</div>

not sure what your asking but i’m guessing [when](https://www.jenkins.io/doc/book/pipeline/syntax/#when) is the syntax you want.

---

<div class="post-metadata">

**Author:** ![darryl](https://avatars.discourse-cdn.com/v4/letter/d/c0e974/32.png) [@darryl](https://community.jenkins.io/u/darryl)\
**Post date:** [June 10, 2022, 7:31am UTC](https://community.jenkins.io/t/conditional-steps-multiple-run-execution-node-syntax-for-jenkinsfile/2685/3 "2022-06-10T07:31:16Z")

</div>

Thank you halkeye. What I am trying to do is if a node is online (node A), I will execute the steps and parameters exclusive for node A. If there is already a job running on node A, node B will be used with steps and parameters exclusive for node B.
