Questions tagged [ifelse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26
votes
7answers
6k views

Difference between quoted and unquoted comparison syntax

In general, when comparing variables in templates, I use unquoted variable names. e.g., {if segment_3 == category_url_title} If comparing to an actual value (not a variable), I quote the value. e.g.,...
4
votes
3answers
292 views

If statement inside a loop?

I am using the store finder module, and am trying to insert a "title" for each "state". If I have 20 stores in a certain state, I would only like to display the "title" once. Is there any way this ...