User`s guide
500 VEE User’s Guide
Appendix
Figure 278 Apple Bagger, Solution 1
Key Points
Optimal Solutions:   To optimize the performance of programs, 
use fewer objects, if possible. This solution uses six objects. 
The program could also be implemented with 10 objects, as 
Figure 279 shows.
Until Break and Break Objects:   Use these objects for loops that 
require testing a condition. In this example, the loop should 
stop when the total weight of the apples is greater than 10 
pounds.
Accumulator:   Use the Accumulator to keep a running total.
Counter:   Use the Counter to keep a running count. In this 
example, the Counter is used to track the total number of apples 
in the basket. Note that when the total weight is over 10, only 
the Then pin fires on the If/Then/Else object giving the correct 
answer in the Counter.
Solution 2—Apple Bagger
Figure 279 gives another solution using more objects.










