Hi Fu,

On 10/11/07, Fu <[EMAIL PROTECTED]> wrote:
>
> 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.

It seems you are using it as should be.

> Thanks for all the comments and work you have done.

You're welcome, thanks for the ideas. I'm glad OpenWFEru can help you
in your work.


I liked the "accumulate" idea, so I implemented it, I also implemented
the Ruby ranges, though they were not really required.

You can benefit from them by checking out the code :

svn checkout http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby

It's not yet properly documented, but the last tests at
http://openwferu.rubyforge.org/svn/trunk/openwfe-ruby/test/extras/csv_test.rb
show how it works.

You can use the "accumulate" option instead of the "through" one and
an array of values will build up, instead of the default 'override'
behaviour.


Hope this will be useful, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to