If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction's RetVal argument.
To store the return value of an action call, use the syntax:
MyRetVal=RunAction (ActionName, IterationQuantity, Parameters)
r=RunAction ("Action2", oneIteration)
msgbox r 'throws error
' exitaction is written in Action2
<font color="blue">[i]If there is no struggle, there is no progress!
I got it with some R&D
we have to write ExitAction(constant_return_value) instead of just ExitAction which was not mentioned in the documentation