tinybutstrong icon indicating copy to clipboard operation
tinybutstrong copied to clipboard

Feature request: support multiple "when" conditions

Open DolphRoger opened this issue 3 years ago • 0 comments

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.

DolphRoger avatar Jun 30 '21 09:06 DolphRoger