in reply to Code blocks with ternary operator or trailing conditionals
If I had to put them all on a single line, I'd use something like this, but you'll have to be careful of false values:
...That's awful in terms of style, though. Just use an if statement.1 and print "hello1\n" and print "bye1\n" or print "hello2\n" and prin +t "bye2\n"
|
|---|