vForums Support > vForums :: Report a Bug :: Resolved Bugs :: > Nested If Template Statement

Nested If Template Statement - Posted By Michael (wrighty) on 18th Jan 10 at 2:05pm
It breaks it! {Tongue Out}

On my forum (Ross knows link) attempting to use a custom if statement, but it's terminated by {/if:gender} {Sad}


Surely a {/if} should terminate a custom {if}, not a {/if:gender} {Unsure}

Re: Nested If Template Statement - Posted By Ross (admin) on 18th Jan 10 at 2:07pm
Which template?

Nested {if} statements have work on all my tests.

Re: Nested If Template Statement - Posted By Michael (wrighty) on 18th Jan 10 at 2:09pm
It's the mini profile one, sorry for not mentioning that. Version 1 {Smile}

Re: Nested If Template Statement - Posted By Ross (admin) on 18th Jan 10 at 2:14pm
It's not just because it's nested, it's the {else} doing most the damage. Replacing that with a separate {if} seems to fix it {Smile}

Re: Nested If Template Statement - Posted By Michael (wrighty) on 18th Jan 10 at 2:16pm
Hm... Ok.

I thought {else} would have worked. Oh wells! {Grin}
Thanks.