Forwards the first input if it is positive or if the second input is negative and returns a third (optional) one if neither one of the conditions is valid.