--- parser3/src/classes/Attic/root.C 2001/03/08 13:19:09 1.1 +++ parser3/src/classes/Attic/root.C 2001/03/08 15:15:45 1.4 @@ -1,11 +1,14 @@ /* -$Id: root.C,v 1.1 2001/03/08 13:19:09 paf Exp $ +$Id: root.C,v 1.4 2001/03/08 15:15:45 paf Exp $ */ #include "pa_request.h" static void _if(Request& r, Array& params) { - bool condition=r.autocalc(*static_cast(params.get(0))).get_bool(); + 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))); r.write(value); }