# if_statement

> "IF" <condition> ":" <directive>+ ("ELSE" "IF" <condition> ":" <directive>+)* <optional_else_clause>

Record: `pag:production-if-statement`
Kind: production
Canonical: https://banes-lab.com/ontology/grammar#pag-production-if-statement

Listed in [Grammar records](https://banes-lab.com/api/records/pag.md), after [action_expr](https://banes-lab.com/records/pag/production-action-expr.md) and before [for_loop](https://banes-lab.com/records/pag/production-for-loop.md).

## Grounds

- [representation:logic](https://banes-lab.com/records/reasoning/representation-logic.md)
