How to run code inside a sketch?

Let’s say I have a variable of type String and it contains code, how can I run it inside a working sketch and get the output result?

1 Like

Hi, welcome to the forum!

Do you want to share an example of what you are trying to do? There are definitely a way to run a string as a code (for example here) but if you can share examples, we may be able to suggest a more efficient way to solve it.