Input 0 to output 0 Input 1 to output an infinite number of 1s Input anything else and it's invalid.
I think this code should be in the Esolang wiki instead of the current one. They can cut out the "INVALID." part though. Truth-Machine code by me, concept by Keymaker.