David Moyer

Skip or Omit ... potential pitfall

Discussion created by David Moyer on Oct 14, 2016
Latest reply on Oct 16, 2016 by wimdecorte

I propose to you the following:

Two bits of code - I think the first one is fine, I think the second one has the potential for problems:

First, a walk in the park ...

Then, enter the Twilight Zone ...

Capture.PNG

Given a set of five records, if the fifth (last) record meets $condition=1, then the previous existing record's Main::OrderTotal will be evaluated twice and $grandTotal will be incorrect.  I recommend the following modification to the "Omit Record" step ...

Capture.PNG

Addendum:

- the Set Variable $condition was intentionally left empty.  It should say // your Boolean logic here

Outcomes