How to turn "var84648676877876453425345".anycoin to var84648676877876453425345.anycoin

I need a way to read a attribute when the name is a string.

My code is hella messy so I’ll only send it if needed.

Howdy Domas,

you can use getattr( instanceO, attributeNameS ) if the attributeNameS is a string.

You can use eval( instanceNameS ).attributeName if the instanceNameS is a string. According to your headline, it seems you are looking for the latter… E.g.:

eval( “var84648676877876453425345" ).anycoin

Cheers, Dominik