kordix
261
13
Laravel

!= or <> does not work in @if

Posted 2 months ago by kordix

When I use

@if($variable <> 0)   text @endif

or

@if($variable != 0)   text @endif

In blade file it does not work , other comparisions work perfectly. You know anything about that?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.