Wouldn't it be useful a method to compare a variable to a number (or to a string) and use the result in a switch?
I often have to switch between a variable that is equal or greater than a value and I must to code a php function and use it or pass its result to a switch.
It would be easier if the Data Provider of switches could manage such comparisons, something like:
in read_data the format is:
in switch it could be:
and in Values setup:
maxx
I often have to switch between a variable that is equal or greater than a value and I must to code a php function and use it or pass its result to a switch.
It would be easier if the Data Provider of switches could manage such comparisons, something like:
in read_data the format is:
id/=:{data:field}or
id/<:{data:field}
in switch it could be:
{var:varname}/=:3or
{var:varname}/<:7
and in Values setup:
true:some code if the condition is truefalse:some code if the condition is false
maxx