Skip to content

No empty IF branches

IF has_entries = abap_false.
  " do some magic
ENDIF.

is shorter and clearer than

" anti-pattern
IF has_entries = abap_true.
ELSE.
  " do some magic
ENDIF.
From SAP/styleguides under CC BY 3.0 — more details
Last updated on