95..100,<=2.0,<=2.0,<=2,<=5,<=5,"output1"
90..94.99999,<=2.0,<=2.0,<=2,<=10,<=10,"output2"
>=95 && <100,<=2.0,<=2.0,<=2,<=5,<=5,"output1"
>=90 && <95,<=2.0,<=2.0,<=2,<=10,<=10,"output2"
My problem is that using the below hash gives the results "output4"
which is valid but not prefered. The "f1" needs to be within the
range.
decide({ "f1" => 92,
"f2" => 4.1,
"f3" => 0.9,
"f4" => 0.8,
"f5" => 5.1,
"f6" => 5.2
})
The original csv table I had is the following:
in:f1,in:f2,in:f3,in:f4,in:f5,in:f6,out:o
>=95,<=2.0,<=2.0,<=2,<=5,<=5,"output1"
>=90 & <95,<=2.0,<=2.0,<=2,<=10,<=10,"output2"
>=10 & <20,<=4.5,<=6.3,<=2,<=10,<=10,"output3"
>=10,<=4.5,<=6.3,<=2,<=10,<=10,"output4"
Hello Fu,
Adding [Ruby] ranges to the CSV tables is a great idea !
Meanwhile, have you tried :
in:f0, in:f0
>90, <92
or something ?
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
Thank you very much for the response. Your idea worked great.
Fu
On Oct 9, 7:10 pm, "John Mettraux" <jmettr...@openwfe.org> wrote: