Presets Arguments

Dear all,

How to get the arguments on the preset in the provision script?

Thank you so much

Best regards,


This is in the documentation.

Dear akcoder

I saw in the doc:

When assigning a Provision script to a preset, you may pass arguments to the script. The arguments can be accessed from the script through the global args variable

But I don’t know how to correctly set the argument in the Preset, and how to reuse the variable in the Provision script.

Can you explain to me how to do this?

Thanks in advance.

"2 PERIODIC" is your argument.

In your provision script, arg access is ordinal based. So args[0] in this case.