php - Do blade elseif conditionals end if the first condition is met -


i have elseif in blade looks below:

@if(condition 1)     1 @elseif(condition 2)     2 @else     3 @endif 

if first condition met , 1 happens, statement end, or hit 2, assuming condition 2 met

the body of first condition execute , end. if want check condition 2 need make if outside of if else if series.


Comments