else

NLP++ supports if-else statements syntax identical to C and C++.

The syntax for if-else statements is:

if (expr)

  statement

else

or

if (expr)

  block

else

where a block is a list of statements enclosed in curly braces  { }.