Learn how to use if / else statements in your views
if
and else
statements in your views. This is useful when you want to conditionally render some content based on a certain condition.
if
and else
statements in your views to display a message or a chart depending on whether the query result is empty or not.
await
syntax to wait for the query to resolve before using the result.