Announcement

Collapse
No announcement yet.

Coniditonal for multiple usernames....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Coniditonal for multiple usernames....

    Hello all, I'm back for more help with conditionals. I'd like to know if it's possible to use a conditional for usernames to show info for more than one user. Here's what I am working with right now.

    This code shows the message "Blah" for the user "John":

    Code:
    <if condition="$post[username] == 'John'">Blah</if>
    I want to show the message "Blah" for the users "John" and "Jack".

    Here's what I've tried:

    Code:
    <if condition="$post[username] == 'John,Jack'">Blah</if>
    This did not work.



    Does anyone have any idea what the correct conditional would be?

    Thanks for any help!
    Last edited by Buczilla; Mon 29 May '06, 8:17pm. Reason: speeeled condiatnal rannghs

  • #2
    $post[username] == John or $post[username] == Jack

    or

    in_array($post[username], array(John,Jack)

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X