Looking inside a variable

Posted by Rhinoa on Thu 14 Nov 2002 01:59 AM — 3 posts, 13,900 views.

United Kingdom #0
Hi,
Currently I'm completely clueless on how to look "inside" a variable, and match on a certain thing. Like:

Trigger: (* Players Online: *
Script:
sub Players (strname, trig_line, arrWildCards)
Players = arrWildCards (2)
'Look inside Players variable for a certain name and world.note that they're online.
???
world.note "Someone is online"
end sub
Australia Forum Administrator #1
You could use "Instr".

eg.

if Instr (Players, "Nick") > 0 Then
world.Note "Nick is online"
end if
United Kingdom #2
Sweet, thanx.
~Rhinoa~