Hi, I'll explain what's going on with your failed attempts (this may help in the future) and show a possible solution.
On Fri, Mar 22, 2013 at 9:39 PM, Leonard de Ruijter <[email protected]> wrote: > time = 16h returns true whenever it is called Here you define time to be a constant of type bool. If it is created during the 16h interval, it'll be true forever, otherwise false forever. > time = "16h" is a string > time = bool_of_string("16h") returns false, even when 16h is in fact true The problem this time is that bool_of_string() is only meant to accept "true" or "false", it does not evaluate expressions. There is not really a way to parse a string as an interval, but we do have an eval() function to evaluate an expression. It returns the result of the expression, as a string. So you could use something like bool_of_string(eval("16h")). Hope this helps, -- David ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
