switch/if printing