#><>, 6 bytes
><>, 6 bytes
:?!1n;
Could have been 1 byte shorter if ?
had the opposite conditional behaviour.
:? check if nonzero, then either
! a) skip the next instruction or
1 b) push 1 to the stack
n print
; terminate