error is Could not parse the remainder: ‘{{dataMaster.status}}’ from ‘{{dataMaster.status}}’
i want to compare fetched database data with “Cancelled”
{% for dataMaster in masterAllOrders %}
{% if {{dataMaster.status}} == “Cancelled” %}
HYYYYYY
{% endif %}
{% endfor %}
The if
is already in a tag. You don’t surround variables with {{ }}
inside tags.
sir for i want to compare AMO CANCELLED
and my task is if CANCELLED present in condition then dont show these types of data
how to DO it
I sorry, but I don’t understand what you’re asking for here, or if you even still have a question.
If there’s still an issue, please provide more details and clarification.
fetched status from db are
“AMO REQUEST RECEIVED”
“AMO REQUEST CANCELLED”
“AMO REQUEST OPEN”
but here i dont want to disply if status have “CANCELLED” string
how to do it ?
Write a comparison that will only display if the status is not “AMO REQUEST CANCELLED”.