Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atreeon opened this issue Oct 5, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@atreeon
Copy link

atreeon commented Oct 5, 2023

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}}
@atreeon atreeon added the documentation Improvements or additions to documentation label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant