In the thinkPHP template, when judging multiple intervals, can I repeat multiple elseifs as shown below? If so, is this the best way to judge multiple intervals?
{if($staff.age<30)}Young {elseif($staff.age<40)/}Middle-aged {elseif($staff.age<50)/} Middle-aged and elderly {elseif($staff.age<60)/}elderly {else/}retired{/if}
The multi-directional process branch structure can be completed in this way, which is optimal~