Level 75
You can use Ternary operator ?:
{{ (condition1 && condition2) ? 'It is true.' : 'It is false.' }}
Documentation: https://www.php.net/manual/en/language.operators.comparison.php (look for Ternary Operator)
Summer Sale! All accounts are 50% off this week.
can I do something like this using inline blades. if(condition1 && condition2)
You can use Ternary operator ?:
{{ (condition1 && condition2) ? 'It is true.' : 'It is false.' }}
Documentation: https://www.php.net/manual/en/language.operators.comparison.php (look for Ternary Operator)
Please or to participate in this conversation.