felangel / felangel/mason

docs: Can I show or hide text based on whether a list item has been selected

Open
#1,104 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

**Description**
I have a list of values as a variable / parameter
```
platforms:
type: array
values:
- macos
- web
- android
default:
- macos
prompt: platforms
```

Can I check whether that the item has been selected or not?
```
{{#if platforms contains 'macos'}}
# Code that should only be executed on macOS
{{/if}}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.