i want to simulate the scenario that in the itemlist some specific item has same type when these items reach the specific quanty such as four.i want pull them all out ,i use where quanty=4;but when one item pulled out,the quanty become 3,and the pull query isnot met,and the items should be pulled out no longer pulled out.
for example like pic below,there are four type2 items in the list,when one pulled out ,only three left,they willnot be pulled out again.
how can i solve this problem,could you give me some idea ?thanks