By designing the cathode, grid(s) and plate circuits properly, a vacuum tube will either amplify or switch.