I could really need some hints here. I don't know how to recieve a return value from a function/method.
Simple example: I have a Textbox named Text an a script with the following code
def somemath(x):
n = x * x - x
Text.SetText(str(n))[/code:3u6blokr]
If I call the function with System: Run Script("somemath(3)"), the result 6 is correctly shown in the Textbox.
[code:3u6blokr]def somemath(x):
n = x * x - x
return n[/code:3u6blokr]
But what to do now? How do I receive the return value? (The same is with calling a class that might return something)