01-25-2013 02:06 PM
I have two tanks in one loop (one empties while the other fills) and I'm looking to have two stop conditions for the loop. Can this be done? The conditions would be based on the levels in both tanks. Thanks.
01-25-2013 02:10 PM - edited 01-25-2013 02:14 PM
@Dario316 wrote:
I have two tanks in one loop (one empties while the other fills) and I'm looking to have two stop conditions for the loop. Can this be done? The conditions would be based on the levels in both tanks. Thanks.
yes...AND'd the two tanks once they met their levels, and OR it into the stop loop condition with a UI stop control
01-25-2013 02:58 PM
You can OR as many conditions you want to stop a loop. If going more than 2, use the Compound Arithmetic node set to OR. That node is growable.
01-25-2013 03:24 PM - edited 01-25-2013 03:25 PM
@crossrulz wrote:
You can OR as many conditions you want to stop a loop. If going more than 2, use the Compound Arithmetic node set to OR. That node is growable.
Use the compound Arythmatic primitave anyway! Not only does it scale nicely when you realize you want to add a new exit case you can right click any node and invert (Negate) the input or output. Saves lots of nots![]()