Skip to content

Feature request: support multiple "when" conditions  #22

@DolphRoger

Description

@DolphRoger

Hello Skrol,

for conditional blocks often it would be handy to combine multiple conditions to create an "and" condition, like

[onload;file='cms.login.html';when [var..cst.EDITMODE]=0;when [var..cst.DEVELOPER]=1]

Currently this can be solved with either wrapping the whole block in another condition, defining another constant/variable or using regular expression matching. It would be much more intuitive and readable to combine the conditions, keeping the whole logic in the template itself.

Thank you for TBS every day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions