Use a switch statement in the operator() like the other valuenode types do.