smarty 之 if当兵年龄判断

<h2>当兵年龄判断</h2>
<{if $smarty.get.age ge 18 and $smarty.get.age le 23}>
<font color="blue">你符合当兵的年龄要求!</font>
<{else}>
<font color="red">年龄不合要求</font>
<{/if}>

 

posted @ 2023-05-04 22:16  paoPaoLong_liu  阅读(14)  评论(0)    收藏  举报