Global functions

Hi,

I’m trying to make a global function that will return a value. I’m using a Lookup called ‘Functions’ with the ogScript for the function in the lookup Value, and the name of the function as the Key. I’m calling it with :

%const[‘Functions’][‘myGlobal’]% myGlobal(“test”);
This works well until I try to add a return value to the function when I get an error. Is this the best way to implement a global function, and are return values possible?

Many thanks,
Martin

I think I’ve found the answer - put any global functions inside an tag. They are then globally visible, and can have a return value.
#DashBoard