Skip to:
Content
Pages
Categories
Search
Top
Bottom

conditional statement based on a returned field value outside of loop

  • I need to make a conditional statement based on a returned field value OUTSIDE of the profile loop.

    If I do it like this:
    if (bp_profile_field_data(‘field=gender’)) == “female”{
    do this…
    }

    it returns the value of the field only and not the “do this…” part

    Suggestions?

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘conditional statement based on a returned field value outside of loop’ is closed to new replies.
Skip to toolbar