case "$ROTATION" in right) NEW_ROTATION="inverted" ;; left) NEW_ROTATION="normal" ;; inverted) NEW_ROTATION="left" ;; *) NEW_ROTATION="right" ;; esac