Log in

View Full Version : conditional statement not working.


Bernd
12-04-2006, 10:30 AM
Does anybody have an idea why this is not working?

<if condition="$post[field7] == 'Yes!'">

Basically want to enable something if a custom user field value is "Yes!".
I initially tried it leaving out condition, but that doesn't seem to work either.

RedTyger
12-04-2006, 10:41 AM
<if condition="$post['field7'] == 'Yes!'">

<if condition="$post['field7'] == Yes!">

In order of best guess. :)

Bernd
12-04-2006, 11:26 AM
Thanks, it turns out that my version should work (works in postbit), but when included in the header template it fails.

I guess I have to include certain php files into the header for it to function as the values cannot be retreived.

RedTyger
12-04-2006, 11:55 AM
Try $bbuserinfo instead of $post.