Add code automatically for iterations (++) after naming an assign

I would like Service Studio to automatically add code to the assignment after I have named it in this specific way:


Obviously, the automatically added code should be:

NameOfAnInernalVariable = NameOfAnInernalVariable + 1

Perhaps it would also make sense to do this for types other than int - example:

NameOfAnInernalVariable  = AddDays(NameOfAnInernalVariable, 1)

Although technically simple, this behaviour would save me a lot of time when developing.

Screenshot 2023-03-24 110221.png

Maria this is a good idea, even it exists in most of the programming language

Adding to you, this can be applied for decrement as well

Like MaxValue--

Yes, that makes sense!

It remains only to discuss, in which types this functionality would be needed and really helpful.

I usually need it for integers when writing a loop.

Any other ideas, when this would be useful?

The label of an assign statement is not variable-name-aware.

However, I do see options to include it into the suggestions:

1) Within an assign node, as variable selection:Where typing the variable name with ++ or -- adds the appropriate assignment

2) Within the logic suggestions:

Where typing the variable name with ++ or -- creates an assign node, with the first assignment contains the assigning of the typed variable according to the ++ or --

Hi Jeroen,

thanks for your comment, what do you mean that the label of the assign is not variable-name-aware? That there is no technical way to do it? I was suggesting this behavior because it would save me most time (because of the clicking).

But your idea with the suggestion would be equally good in saving time and clicking! So perhaps it is the way to go, if my option is not doable. (Only that I usually don´t use suggestions, because they load too slowly and often don´t give me what I was looking for. But that is another topic, worth looking into...)

Hi Maria,

I do see your point, when dragging an assign into the flow the label is automatically selected for renaming.
But you can currently type whatever you want in there, because it doesn't search for existing input/output/local/method-action-output variable names.

Of course, a possible third option can be your use case:
3) When renaming an empty assign node to a variable name with ++ or --Automatically set the first assignment to the variable typed and assign according to the ++ or --