View Single Post
  #7  
Old 10-06-2006, 10:46 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Is there a way to check if only a part of an array is in the array? For example, serverr.staff is set like this:


serverr.staff="acc1,rank","acc2,rank"

I want to find out if acc1 is listed in the array, without doing a loop, is it possible?

I tried:

((@{"acc1",}) in serverr.staff)

Wich returned 0, but if I did:

((@{"acc1","rank"}) in serverr.staff)

it returned 1. But like I said, I only want to find out if "acc1" is listed, and not "rank".
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote