Log in

View Full Version : "If condition" for multiple profile fields


Sychev_S
03-31-2007, 01:53 AM
How can I write a conditional for multiple profile fields in memberinfo?
Whatever I got below does not work...
Pretty much if any of the fields is present, I want the code to be shown.

<if condition="$userinfo[field24]" OR "$userinfo[field25]" OR "$userinfo[field26]">
code
</if>

Shazz
03-31-2007, 02:14 AM
<if condition="$post[fieldx]">TITLE HERE:$post[fieldx]</if>

:)

Adrian Schneider
03-31-2007, 02:17 AM
<if condition="$userinfo['field24'] or $userinfo['field25'] or $userinfo['field26']">

Sychev_S
03-31-2007, 02:54 AM
<if condition="$post[fieldx]">TITLE HERE:$post[fieldx]</if>

:)
not exactly what I wanted, but thanks=)

<if condition="$userinfo['field24'] or $userinfo['field25'] or $userinfo['field26']">

Meh I almost got it right=)
Thank you VERY much for your help!
And thanks for vblogetin!=)