Questions tagged [ifelse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
26 votes
7 answers

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.,...
Derek Hogue's user avatar
  • 17.4k
4 votes
3 answers

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 ...
Funkefied's user avatar
  • 413