On 10/10/07, John Mettraux <[EMAIL PROTECTED]> wrote: > On 10/10/07, Fu <[EMAIL PROTECTED]> wrote: > > > > Is there a way to output every true line? I have tried the below > > without success. It will evaluate each line but only output the last > > true line to the hash. > > > > through > > in:f1,in:f1,in:f2,in:f3,out:o1,out:e1,out:e2 > > > > <100,>=95,<=2.0,<=5,"Output1",, > > <100,>=95,,,"Output2,, > > <100,>=95,>2.0,,"Expection1",, > > <100,>=95,,>2.0,,,"Expection2" > > <100,>=95,,>2.0,"Invalid",,
Hi Fu, I've reread your post. Through works well, but it seems you want the matched values to accumulate somehow. The CsvTable doesn't "output" to the STDOUT, it simply sets "out:" fields. I have added your test case to http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/extras/csv_test.rb (see test #11) It works as expected, it sets "o1" to "Output2", then it sets (overrides) it to "Expection1" (exception ?). Are you looking for some accumulative behaviour or did you mean to set e1 to "Expection1" ? Actually "accumulate" as an extension of "through" is quite a nice idea. Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
