smarty 之 if当兵年龄判断

paoPaoLong_liu / 2023-05-04 / 原文

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