Sorry, the switch case statement is needed to align the input and output for the test. The field value is obtained from the input field, which depending on the value sends the switch to get the corresponding output field value which should have been changed.