Read variables from inputText?

I was wondering if anyone knows wether it’s possible to create variables from text inside an inputText.

Example -> if I put the text “bDead = false” inside an inputBox, and I press some button, the variable bDead is created and initialized with “false”.

I tried loadVariables with the box.text as a parameter, but I guess it expects a link to some file instead of a text…