John, Yes I am looking for accumulate behavior.
I missed type the csv table. Sorry for the confusion. It should be the following: 100,>=95,<=2,<=2,"Output1",, <100,>=95,,,"Output2,, <100,>=95,>2.0,,,"Expection1", <100,>=95,,>2.0,,,"Expection2" ,,,,,,"Invalid" Using the "through,,,,,," worked for what I needed to get done. I thought I could acumulate true values into one variable but after reading you last post realized that I could do it in many variables and add them up. The problem I needed to solve was to be able to test for all possiblities within the scope of variables. So if the first line of the csv table "<100,>=95,<=2.0,<=5,"Output1",, " was not valid line two "<100,>=95,,,"Output2,," could still be valid but with additional possiblities noted by "Expection1" and "Expection2". (I meant "Execption" but I missed type it.) Although the csv table is rather large, since I essentially test every possibility by row and column, it allows me to cover all possiblities and is still more compact then do any othe types of logic. I am not sure if there is a better way to do it with OpenWFEru. Thanks for all the comments and work you have done. Fu On Oct 10, 6:05 pm, "John Mettraux" <[EMAIL PROTECTED]> wrote: > 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 > tohttp://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/extras/csv... > (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 -~----------~----~----~----~------~----~------~--~---
