Feature proposal #2765
closed
The proposed markup is not "validating" as there is no closing tag for the else tag....
Just a suggestion, it doesn't have to be exactly that. Just something for the REGEX to match against for the ELSE.
- Target version set to CB 1.8
- Target version changed from CB 1.8 to CB 2.1
Example ELSE usage (syntax to be tested and implemented):
[cb:if usergroup includes "2"]I have Registered Usergroup[cb:else]I do not have Registered Usergroup[/cb:else][/cb:if]
Yup, the latest else-syntax looks good :-)
- Status changed from New to Resolved
- Assignee set to krileon
- % Done changed from 0 to 100
Implemented in MR !1121
This implements else and elseif usages. Example of usage as follows in proposed MR.
[cb:if usergroup includes "2"]I am Registered.[cb:elseif usergroup includes "8"]I am Public.[/cb:elseif][cb:elseif usergroup includes "1"]I am Super User.[/cb:elseif][cb:else]I am not Registered.[/cb:else][/cb:if]
In short structure it similar to a PHP usage.
- Status changed from Resolved to Closed
Also available in: Atom
PDF