2016-12-15 79 views
0

如何使用防塵助手寫下面的語句?Dustjs或幫手

{@eq key="device" value="windows || Linux"} 
    Your system is Windows or Linux based. 
{:else} 
    Your system is MAC based. 
{/eq} 

回答

1

您可以使用@any助手與Select Helper實現這一目標:

{@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}