Announcement

Collapse
No announcement yet.

How do I write a conditional that includes multiple specific users IDs?

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

  • cbiweb
    replied
    Thank you!

    Leave a comment:


  • shka
    replied
    Code:
    <vb:if condition="in_array($bbuserinfo['userid'], array(34,35,36)">

    Leave a comment:


  • How do I write a conditional that includes multiple specific users IDs?

    I'm still developing a site, so I'm the only member, otherwise I'd test what I'm about to ask.

    I'd like to have something shown to user ID 1, 34, and 256. I know the conditional for a single user ID:


    Code:
    <vb:if condition="$bbuserinfo['userid'] == 34">show this to user ID 34</vb:if>

    Can I simply use commas to add more IDs, or an 'AND' operator, or..... ?

Related Topics

Collapse

Working...
X