# Append a integer counter to the end of process variable name that execute in loop

**URL:** <https://forum.camunda.io/t/append-a-integer-counter-to-the-end-of-process-variable-name-that-execute-in-loop/63788>\
**Category:** Camunda 8 Topics\
**Created:** [July 30, 2025, 9:33pm UTC](https://forum.camunda.io/t/append-a-integer-counter-to-the-end-of-process-variable-name-that-execute-in-loop/63788 "2025-07-30T21:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kishun\_Singh](https://forum.camunda.io/user_avatar/forum.camunda.io/raj_kishun_singh/32/28207_2.png) [@Raj\_Kishun\_Singh](https://forum.camunda.io/u/Raj_Kishun_Singh)\
**Post date:** [July 30, 2025, 9:33pm UTC](https://forum.camunda.io/t/append-a-integer-counter-to-the-end-of-process-variable-name-that-execute-in-loop/63788/1 "2025-07-30T21:33:50Z")

</div>

![image](https://forum.camunda.io/uploads/default/original/3X/2/e/2eeb36966c300a752b5866ceb3c55e27570506f4.png)

I have a process variable with name inspectionResult\_PassFail that runs in loop its result variable name of a script task that runs n number of time in loop.

I want to append a counter 1,2,3, to it for each iteration.  
I have initialized this variable and I am also doign proper incrementation. however I am not sure how add append it to process variable name.is this possible and how shall we do this?

---

<div class="post-metadata">

**Author:** ![claudio\_rio](https://forum.camunda.io/user_avatar/forum.camunda.io/claudio_rio/32/33171_2.png) [@claudio\_rio](https://forum.camunda.io/u/claudio_rio)\
**Post date:** [July 31, 2025, 7:36am UTC](https://forum.camunda.io/t/append-a-integer-counter-to-the-end-of-process-variable-name-that-execute-in-loop/63788/2 "2025-07-31T07:36:07Z")

</div>

Your FEEL expression will be something like this:

“inspectionResult\_PassFail” + “-” + string(counter)

Where counter is the number you want to append (1, 2, 3…)

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [October 29, 2025, 7:36am UTC](https://forum.camunda.io/t/append-a-integer-counter-to-the-end-of-process-variable-name-that-execute-in-loop/63788/3 "2025-10-29T07:36:36Z")

</div>

Closed on October 29, 2025, 7:36am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
