The function takes a numerical input x and multiplies it by 2, adds 2, or does nothing depending on the input value.

