Send Code to Execute as String to Parameters

Hi there,

Is there a function to translate text that contains eggplant/testplant code and execute it?

The purpose of doing this is to be able to send this code as parameters to a recursive script.

The recursive script is iterating through several lists to perform validations and actions. Every once in a while complex structures and dynamic behaviors surface and I need to send special instructions to execute before the recursive script continue to do something else.

I have not been able to find any information about the subject. If you can point me in the right direction I would appreciate it.

I am thinking on some other, mostly time consuming, like making a ‘text parser’…

Maybe what you’re looking for is the do command, described here: http://docs.testplant.com/ePF/SenseTalk/stk-running-other-scripts-and-handlers.htm.

Usually there are better ways to achieve what you want, but the do command occasionally comes in handy for some unusual situation.