Checking for a CHOP == None?

Hi forum - I’ve gotten myself into a bit of a bind. I’m enabling and disabling some stuff in my network, and its possible when things are ‘disabled’ they output ‘None’.

Is there a clean way to check if a chop == None and if so, set the chop value to 0? I can do this with a script chop but it uses ~10ms per cook which seems no Bueno.

File attached in case that is helpful, but it is a bit messy.

Thanks!
B
distance_calculations.tox (2.87 KB)

it’s not entirely clear to me from looking at your network what you are trying to do.
But for these cases where you want some logic in your CHOP channel values I find it’s more convenient to not rename any CHOP channels, but to to give your data CHOP channels an extreme value to indicate it is currently not valid, for instance -9999. This way you can check for it using fast regular CHOPs (for instance the Logic CHOP, set to off when outside bounds).