Blade view: if statement with OR/AND condition

谁说我不能喝 提交于 2019-12-03 05:59:59

It should support all of your standard PHP operators, including || (logical OR).

I have tested it myself and it works fine.

Additionally, I would recommend simply testing this yourself in future to confirm it works/doesn't work.

You can simply use and / or operators:

@if($a==1 and $b==2)
@if($a==1 or $b==2)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!