[TOC]
# bad
if some_condition
do_something
end
# good
do_something if some_condition
# another good option
some_condition && do_something
# bad
do_something if !some_condition
# bad
do_something if not some_condition
# good
do_something unless some_condition
# another good option
some_condition || do_something
You can think condition statement
is put the front of a line.