• If a jump statement is a part of a guard, don’t follow it with Else If or Else.
  • Otherwise, do it.

I don't understand whether the use of "Otherwise, do it" is correct or not. It's perfectly OK in my native language, but I cannot find good English examples. And it makes me think that something is wrong here.

  • 2
    It's fine, but would be slightly cleaner in my eyes without "it": "Otherwise, do."
    – TypeIA
    Aug 16, 2020 at 18:56
  • @TypeIA Thanks a lot :-) Is it correct that it must be "Otherwise, do" and not "Do otherwise"? In other words, "Do otherwise" has completely different meaning?
    – user90726
    Aug 20, 2020 at 11:07
  • 1
    Yes, "do otherwise" means "do something else." It's not at all what you want here.
    – TypeIA
    Aug 20, 2020 at 11:45


You must log in to answer this question.

Browse other questions tagged .