Conditional computation that saves computation

Maybe I don’t see the difference, but the posted approached from @SimonW and @jpeg729 in this thread seem to be applicable here.