📜  刀片条件 if else laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.291000             🧑  作者: Mango

代码示例3
@if (count($records) === 1)
    I have one record!
@elseif (count($records) > 1)
    I have multiple records!
@else
    I don't have any records!
@endif