using selection between two conditionally calculated carry or sum values