I've come to the realization that I'm overthinking a piece of logic parsing, so I'd like to ask for input.
I'm working with a list, this list has 9 entries with integers.
i.e. <list[8|8|0|8|16|0|0|0|0]>
What I am trying to accomplish, is to eliminate any 0 from the end.
My current logic:
# Reverse the list so we start checking from the end.
- foreach <[list].reverse>:
# Set a value to determine if we've reached a value larger or equal than 1.
- if <[trigger].if_null[false]>:
- define WorkbenchInputQuantity:->:<[value]>
- foreach next
- if <[value]> >= 1:
- define WorkbenchInputQuantity:->:<[value]>
- define trigger true
