Action ‘init’ function doesn’t return variable

actions do not “return” values. If you need to do some heavy computation that you want to avoid redoing at a later stage then you should store the value at a global variable (pure global, static or a field in an object depending on your favorite coding style).

tech