0

How to write below statement using dust helper?

{@eq key="device" value="windows || Linux"}
     Your system is Windows or Linux based.
{:else}
     Your system is MAC based.
{/eq}
Liam
  • 27,717
  • 28
  • 128
  • 190
user3380358
  • 143
  • 1
  • 7

1 Answers1

1

You can use the @any helper with the Select Helper to achieve this:

{@select key=device}
  {@eq value="windows"/}
  {@eq value="Linux"/}
  {@any}Your system is Windows or Linux based.{/any}
  {@none}Your system is MAC based.{/none}
{/select}
smfoote
  • 5,449
  • 5
  • 32
  • 38