Is there a boolean return to zero in units?


I have a quantity and a flag return to zero, both are point measurements. flag “return to zero” is like a mask that would be applied on the quantity which has a Unit (quantity is of type ExactDimension).

I couldn’t find in Units such a Boolean mask, even if it is not a physical Unit, Does it exist in C3?
Otherwise, is there an alternative, so I can save the flag and when I evaluate the metric on quantity and the flag is 1 I do some math on quantity.

Thanks in advance.



It;s not clear what do you want, Can’t set the quantity to 0 during transformation when you see the flag?
Otherwise can you provide more details on your problem?