Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel inline if else if

{{$var == 'hello' ? 'Hi' : ($var == 'bye' ? 'Goodbye' : 'another option')}}
 
PREVIOUS NEXT
Tagged: #laravel #inline
ADD COMMENT
Topic
Name
5+2 =