@switch (buttonType) { @case ('icon') { } @case ('text') { } @case ('menu-item') { } } @for (command of arrayCommands; track command.slug) { }