well. that is a really nice way to do it! thanks for holding my hand through this. hah. I am actually very unfamiliar with the moses object. For some reason, I just have never used it. so I definitely wouldn't have come to that conclusion any time soon.
I suppose the desired value might be one, if the input is within range and zero otherwise. Patch attached: