mason icon indicating copy to clipboard operation
mason copied to clipboard

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

Open atreeon opened this issue 2 years ago • 0 comments

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 avatar Oct 05 '23 18:10 atreeon