Hi @Marzio, first of all remember to format the code in the post so others can reproduce the issue:
I dont really get your point, but have you tried a conditional region ?

Or maybe a flow?

Dont know if it is the best practice anyway
Hi @Marzio, first of all remember to format the code in the post so others can reproduce the issue:
I dont really get your point, but have you tried a conditional region ?

Or maybe a flow?

Dont know if it is the best practice anyway