← Back to issue list

`for` grammar: support `else on` and `else for`

View original Github issue

Metadata

Project
craft-grammar
Number
#125
Type
issue
State
open
Author
lengau
Labels
Type: Enhancement Status: Triaged
Created
2025-09-04 16:39:18+00:00
Updated
2025-09-13 01:07:07+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

We should support `else on` and `else for` statements in `for` grammar. Example usage: ```yaml build-packages: - for raspi: - on arm64: - gcc - else: - gcc-aarch64-linux-gnu - else for pc: - on amd64: - gcc - else: - gcc-x86-64-linux-gnu ```

Evaluation history

No evaluation history available.