Can we write line to text file from within script?

And really, the Init script does not need to do anything inside the init function. The vars are initialized outside of the function on a global level, but we still need a function to load and call. So the init script works like this as well, after removing the return test data…

##Variables [vars] (Script)##

Script Name: Variables
Script Handler: vars

Script:

var a='iamempty';
var b=0;

function initialize() {
}

1 Like

Got it :slight_smile: thanks @QMcKay

But be careful about scope, or you could be tearing your hair out…

1 Like

These variables will be fixed/only set as point of install.
Wanted to do it this was as will need multiple scripts which need these variables but if am going to offer the integration as an install option will want an easy was to configure the variables centrally.

This is what I have put together;