19.02.2021, 10:05
Another option is to wrap your code into a function, add it to common functions. Then call this function from scripts passing the required parameters. Optionally you can attach your script to a tag and calculate parameters based on calling group address.