This is just not possible. The arg attr1 has to evaluate to true or false. This post is related: http://answers.ros.org/question/12756/roslaunch-if-condition/