I guess that depends on what you're trying to do exactly. But here are two approaches to something like that...

Code:

$red = 'Color r+/n'
$ = execute($red)
? 'this should be red'



or

Code:

$red = 'r+/n'
color $red
? 'this should be red'