Calculate an expression given in a string

This may be trivial.
If you have an expression given as a string ex. “34*math.sin(30)” and wants the result put into a variable ?
That is at run time of course…
Re Peter

How about this? It might be too complicated but its is a lua function trick

f=loadstring("x=34*math.sin(30)")
f()
print(x)

Exactly :slight_smile:
I allways enjoy simple and elegant solutions
Thanks