in reply to one-line conditional print?

MrSnrub: Just out of curiosity – what happened when you tried the code of the OP? You did try it yourself, didn't you?