freemarer语法.docVIP

  • 41
  • 0
  • 约13.96万字
  • 约 12页
  • 2016-12-10 发布于河南
  • 举报
freemarer语法

By zhxing 1、if, else, elseif 语法: #if condition ... #elseif condition2 ... #elseif condition3 ... ... #else ... /#if 备注:condition、condition2···必须为boolean 类型,#elseif ··、#else可有0或多个。 实例: #if x == 1 x is 1 #elseif x == 2 x is 2 #elseif x == 3 x is 3 #elseif x gt 4 x is 4 #else x is not 1 nor 2 nor 3 nor 4 /#if 备注: 或 号 必须转义,否则出错。。转义请参考其他文档。 2、switch, case, default, break 语法 #switch value #case refValue1 ... #break #case refValue2 ... #break ... #case refValueN ... #break #default ... /#switch 备注:该指令官方不推荐使用了,可以用if, else, elseif 指令代替。 3、l

文档评论(0)

1亿VIP精品文档

相关文档