Strings Used for Property Assignments

I’m writing a script for BGE and I was wondering if you could take a string and have it evaluated as what it equals… in other words, can I have two properties (own.one and own.two) and cal them with own.string and have the string set to either “one” or “two”?

Here is a quick example file I made for a visual example.

Attachments

String Props.blend (125 KB)