Forum Discussion

reydimaano's avatar
reydimaano
Contributor
12 years ago

How to capture the Last Operation Result without using if..then statement?

I have a script that will return a value.  I'm trying to figure out how to get that value by using Run Code Snippet say ShowMessage(getValue()). or using the Last Operation Result.
  • Hi Rey.



    There are two ways exist to implement this.



    1. You may call your script as Run Script Routine passing parameter as Last Operation Result.



    2. If you insist in using Code Snippet, you may assign Last Opeartion Result to KDT unit variable and use it then as parameter for your function.



    See screenshots attached for details (Test3 is the name of KDT unit; Log results are identical for both cases).



  • Hi Rey.



    There are two ways exist to implement this.



    1. You may call your script as Run Script Routine passing parameter as Last Operation Result.



    2. If you insist in using Code Snippet, you may assign Last Opeartion Result to KDT unit variable and use it then as parameter for your function.



    See screenshots attached for details (Test3 is the name of KDT unit; Log results are identical for both cases).