Mr. Victor Bolbot 1 Report post Posted September 24, 2015 Hi, I would like to write a feature and for better controling of the process, I would like to use functions that return as result a number. The value of the number is necessary for further calculations. Regards, Victor Share this post Link to post Share on other sites
Mr. Arne Bergmann 27 Report post Posted September 24, 2015 Hi, the basic syntax for a function is: function <functionName>(<argumentList>) [: <returnType> ] // function body endfunction So if you want to return a double, a function could look like this: function answerToEverything() : FDouble return(42) endfunction Regards,Arne 1 Share this post Link to post Share on other sites
Mr. Victor Bolbot 1 Report post Posted September 24, 2015 Thank you Arne! Cheers,Victor. Share this post Link to post Share on other sites