laravel variable null or not ternary condition code example Example: ternary operator laravel blade //laravel {{ condition ? 'yes' : 'no' }}