Block negative values

Jonas Urbat's icon

Hey guys,
can you help me to block negative values in a data stream.
So, if I have numbers from 0 to 1 they should be pass through normally, if the value is <0 or >1 it should be blocked, so the output stays at the last allowed value.
Thanks a lot!

double_UG's icon

split 0. 1.

Max Patch
Copy patch and select New From Clipboard in Max.

Jonas Urbat's icon

Oh Yesss, thanks