To match a user to corresponding data, you can use two arrays if the data is simple. A larger data set should use an external data file.

Let's start simply:
 Code:
; Define an array of user names
$aUsers = 'fred','wilma','barney','betty'
; an array of data that matches each user - in this case, the color of their clothes
$aUData = 'orange','white','brown','green'

; search the user array for the current user id
$Index = AScan($aUsers, @USERID)

If $Index < 0 ; not found
  $Color = 'unknown'
Else
  ; define color from the data array based on the userID found in the array
  $Color = $aUData[$Index]
EndIf
@USERID ' wears ' $Color ' clothes.' ?
This illustrates a simple two-array method. One array is the userID and the other is the associated data. A two-dimensional array might be better but is a little harder to initialize. Much better, and more direct, is an external data file. Kix can natively manipulate INI files, so here's an example:
 Code:
$Color = ReadProfileString('UserClothes.ini', 'USERS', @USERID)
If $Color = ''
  $Color = 'unknown'        ; not found in data file, show unknown
EndIf
@USERID ' wears ' $Color ' clothes.' ?
Notice that this code is very simple and requires no initialization. Another advantage is that anyone can edit the data file - no programming skill is required. Here's the data file format:
 Code:
[USERS]
fred=orange
Wilma=white
barney=brown
betty=green
Just add the userIDs to the file and the associated data value as needed.

Keeping your data separate from your program is generally a very good practice.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D