[if x equals="something"]Add content here [else]Show this content instead.[/if x]
so this is valid above?
its a laundry list of statements .. i guess i will start off easy:
[if 29="18-24"]Add content here [/if x]
[if 29="25-49"]Add content here [/if x]
[if 29="50-60"]Add content here [/if x]
within each of those "age" backets in have a sub set of rules to implement
ie:
[if 29="18-24"]
[if 39="bifocals"]
bifocals
[else]
no-bifocals
[/if 39]
[/if 29]
The syntax is not correct. if needs to be like the following:
[if 29 equals="18-24"]Add content here[/if 29]
i understand that portion.. its the else portion:
[if 39="bifocals"]
bifocals
[else]
no-bifocals
[/if 39]
It has to be the word and the symbol "equals=", and not just "=".
Adding onto this 'else' question, I have found that else statements can only deal with a maximum of 3 AND statements before they stop working. For example, the logic if (x AND x AND x AND x AND x) else(y) would not work. Is there any hook that can extend 'else'?
well that explains that.. mine are very nested, i ended up writing all native php code to do it VS using a view
Writing your own shortcode was going to be my suggestion.
As noted, you've gone beyond FF capability and would need your own code.
Please login or Register to submit your answer