How to Group Server Action Statements and Keep in Same Namespace?

I have to do a lot of complex maths in some of my server actions, and I need to group action steps together.

As far as I understand, the Group action step will do this but create a level of namespace hierarchy that I don't want to have.

Is this correct?

I'd like an action step like Group which just allows me to expand/collapse a collection of action steps, but all within the namespace of my overall server action.

Does this type of action step exist?

So far I've been using an if-else with a condition of true, but when I have lots of these they all look the same... :flushed:

1 Like

Please provide an example of what you want to achieve. Also what do you call a "statement" in the server action steps?

Apologies Teodor, I didn't explain that with very good terminology. I've just updated it to read in a more consistent way.

Here is an example of what I do now:

I want to be able to reference those Set Value variable names in later parts of the server action without them being in a separate namespace... so I want to be able to say:

if ({{user_timezone=='BST'}}

Rather than:

if ({{my_groupname.user_timezone=='BST'}}

I hope that makes sense now!

When you use the group without giving it a name, it will not create a separate namespace.

HI @patrick!

That is useful to know, but I want to give it a name so I can see what is inside it!

Could there be an option to name it but not create the separate namespace?

At the moment I've started using an if-then with an expression like {{!_UPDATE_PAYMENT_}} , which works but a group type item would be much better!