nested conditional tags

wolfff

New Member
Do nested conditional tags work?



Code:
<IF [[Nazione]] = "Italy">

<IF [[Nome]] <> "">
Ciao [nome], 
<ELSEIF [[Nome]] = "" AND [[MF]] = "a">Cara amica,
<ELSE>Caro amico,
</IF>

text text text

<ELSE> 


<IF [[Nome]] <> "">Hi [nome], 
<ELSE>Dear friend,
</IF>

text text text

</IF>


Thanks
 

captkirk

New Member
What about this?

Code:
<IF [[Nazione]] = "Italy" AND [[Nome]] <> "">
Ciao [nome],

text text text

<ELSEIF [[Nazione]] = "Italy" AND [[Nome]] = "" AND [[MF]] = "a">Cara amica,

text text text

<ELSEIF [[Nazione]] = "Italy">Caro amico,

text text text

<ELSEIF [[Nazione]] = "" AND [[Nome]] <> "">Hi [nome],
<ELSEIF [[Nazione]] = "">Dear friend,

text text text

</IF>

This is not tested, but I wanted to nest IFs and came up with the AND idea to get around it.
 

captkirk

New Member
Oops. I have realized that the AND should be <AND>. While I have not tested the above code, I have a similar situation where it works.
 
Top