Jump to content

If member id is in array


TheJackal84

Recommended Posts

Posted
1 minute ago, Ilya Hoilik said:

Forgot about shortcut. You can use member instead of \IPS\Member::loggedIn(). It's more beautiful.


{{if in_array( member.member_id, array( 1, 2, 3 ) )}}

{{endif}}

All the available shortcuts are described here.

Yeah I have my own $member $member_id etc shortcuts already, I just typed it that so it was easier to understand, Thanks again

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...