(1)基本句式{if $name eq "Fred"}Welcome Sir.{elseif $name eq "Wilma"}Welcome Ma'am.{else}Welcome,whatever you are.{/if}(2)条件修饰符有很多,请记得简单的几个eq(==) neq(!=)gt(>)lt(<)(3)修饰词时必须和变量或常量用空格格开