Skip to content

adapt_framework: any all and none helpers #2764

Description

@olivermartinfoster

Subject of the issue

We're missing a none helper.
But we also should be able to use these as inline helpers as well as the usual block helpers.

Current:

{{#any _conditionA _conditionB}} one or both true {{else}} both false {{/any}}
{{#all _conditionA _conditionB}} both true {{else}} one or both false {{/any}}

Suggested:

{{#any _conditionA _conditionB}} one or both true {{else}} both false {{/any}}
{{#all _conditionA _conditionB}} both true {{else}} one or both false {{/all}}
{{#none _conditionA _conditionB}} neither true {{else}} one or both true {{/any}}
{{#any _isLocked (none _isVisible)}} is-disabled {{else}} is-enabled {{/any}}
{{#all (any _conditionA _conditionB) (none _conditionC _conditionD)}} either _conditionA and/or _conditionB must be true and neither _conditionC nor _conditionD {{/all))

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions