Return value

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Posts: 5
Joined: Wednesday 13 April, 2011 - 16:19

Return value

Post 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!
Post Reply