Is it possible to pass a variable from a function back to its caller? If so, how can it be done?

Posted 3 months ago by Akshay

Post a topic
Answered
A
Akshay

I have a function that calculates the sum of two numbers and stores the result in a variable within the function. Is it possible to pass this result back to the function's caller? If so, how can this be achieved?

0 Votes

Clark Bent

Clark posted 3 months ago Best Answer

Yes, it is possible.  To do this add a "Promote" action step to your function.  In the Promote step you need to just type in the variable name to promote to the calling test.  Note: you cannot just drag it in to the step from the data toolbox.


Here is the function:


Here is the Test:


0 Votes


1 Comments

Clark Bent

Clark posted 3 months ago Answer

Yes, it is possible.  To do this add a "Promote" action step to your function.  In the Promote step you need to just type in the variable name to promote to the calling test.  Note: you cannot just drag it in to the step from the data toolbox.


Here is the function:


Here is the Test:


0 Votes

Login or Sign up to post a comment

© Orasi Software, Inc. | All Rights Reserved.