Re: [sr-dev] testing function result in if-statement

2017-04-10 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I think I looked at it several years ago and the situation is a bit > complex given the way the config script interpreter is doing the > evaluation -- there are the rules that return 0 means exit, negative > values are evaluated to false and positive to true.

Re: [sr-dev] testing function result in if-statement

2017-04-10 Thread Daniel-Constantin Mierla
I think I looked at it several years ago and the situation is a bit complex given the way the config script interpreter is doing the evaluation -- there are the rules that return 0 means exit, negative values are evaluated to false and positive to true. Because of these, at different layers, the

[sr-dev] testing function result in if-statement

2017-04-08 Thread Juha Heinanen
I noticed that function result cannot be directly tested in if-statement: if (func_x() == y) ... Why is that? Should I open a feature request or is it a no-go? -- Juha ___ sr-dev mailing list sr-dev@lists.sip-router.org