if: making a choice
if temperature > 25:
say "Warm"
else:
say "Cool"
The condition must evaluate to Boolean. Pliro has no truthiness conversion.
The else clause is optional.
There is no elif or one-line else if form. Nest another if in the else
block:
if score >= 100:
say "Gold"
else:
if score >= 50:
say "Silver"
else:
say "Bronze"
Example
# language: en
let score = 12
if score >= 10:
say "A"
else:
say "B"
