Page 1 of 1

Return value

Posted: Tuesday 10 May, 2011 - 16:54
by ElroyDeege
4DScript functions return either a value or a string.
However, if you want to convert a value returned by a function to a string, you can use String(...).

If you created your own function, this function will return the return value of the last executed statement in your code.

Moreover, the 4DScript function Return(p(1)) will quit from the function right away and return p(1).

Good luck!