You can chain any number of else if
statements to an existing if
statement, to evaluate a sequence of statements.
index.pug
- var page = 60;
if page => 52
h1 Lots of numbers!
else if page > 26 && page < 52
h1 A few numbers
else
h1 Not a lot of numbers
index.pug output
<h1>Lots of numbers!</h1>