Hi @Samsam ,
You could use an array containing all your constants, and use the solution I gave here.
Hope it helps.
Philippe