Question:Which of the following is correct selection if-elseif-else syntax for laravel blade engine? 

A 
@if (count($records) === 1)
    I have one record!
@elseif (count($records) > 1)
    I have multiple records!
@else
    I don't have any records!
@endif
 

B 
@if (count($records) === 1)
    I have one record!
@elseif (count($records) > 1)
    I have multiple records!
@else
    I don't have any records!
@end
 

C 
@if count($records) === 1
    I have one record!
@elseif count($records) > 1
    I have multiple records!
@else
    I don't have any records!
@endif
 

D 
@if (count($records) === 1)
    I have one record!
@else
    I don't have any records!
@endif
 

+ Answer
+ Report
Total Preview: 958

Copyright © 2024. Powered by Intellect Software Ltd