--- parser3/src/classes/Attic/root.C 2001/03/08 13:19:09 1.1 +++ parser3/src/classes/Attic/root.C 2001/03/08 13:42:30 1.2 @@ -1,12 +1,17 @@ /* -$Id: root.C,v 1.1 2001/03/08 13:19:09 paf Exp $ +$Id: root.C,v 1.2 2001/03/08 13:42:30 paf Exp $ */ #include "pa_request.h" static void _if(Request& r, Array& params) { - bool condition=r.autocalc(*static_cast(params.get(0))).get_bool(); - Value& value=r.autocalc(*static_cast(params.get(condition?1:2))); + bool condition= + r.autocalc( + *static_cast(params.get(0)), + false/*don't make it string*/).get_bool(); + Value& value=r.autocalc( + *static_cast(params.get(condition?1:2)), + true/*make it string*/); r.write(value); }