Script to expand value in variable?

Is there a function in the script action I can call to expand variables in a variable?

IE if MyVar = %OtherVar%, is there a function I can call that will force MyVar to be equal to the value of %OtherVar% ?  

I am able to use a Set Variable action to set MyVar to %MyVar%, but I was wondering if there is a function I could use instead.

Thanks!

-Nelson

Hi Nelson,

You can use the following script:

MyVar = Action.ExpandExpression("%MyVar%");

Regards,
Paul.

OR :

MyVar = Action.ExpandExpression("%OtherVar%");