3 ms·You build vectors of the other conditions, and subtract them before the running sum.by icen 6y agoYou build vectors of the other conditions, and subtract them before the running sum.