 |
chris123zugg Adept
Joined: 23 Aug 2013 Posts: 218
|
Posted: Wed Apr 30, 2025 9:16 pm
using match and a string list off a pattern match |
Player: (*) is the capture
i then need it to match the capture to the string list and do or not do something... this according to the #help file should work?
Code: |
#IF %match(%1, %ismember("%1", "@partytoons")) {} (edited)
|
any help would be appreciated, thanks in advance :P |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4764 Location: Pensacola, FL, USA
|
Posted: Thu May 01, 2025 3:16 am |
ditch all the quote marks, you only need those when passing a string, you want these values to evaluate
also, you only need %ismember, %match essentially expects a trigger pattern, which you arent providing
%match(%1, "{@partytoons}")
%ismember(%1, @partytoons)
should both evaluate as true |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
chris123zugg Adept
Joined: 23 Aug 2013 Posts: 218
|
Posted: Fri May 02, 2025 12:33 pm |
SOrry this is the capture..
Party~:(*)
#IF %match(%1, %ismember("%1", "@partytoons")) {} (edited) |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4764 Location: Pensacola, FL, USA
|
Posted: Fri May 02, 2025 12:38 pm |
That adds no new information.
You are overcomplicating things.
There is no need for you to use both %ismember and %match here.
One or the other will get the results you seek.
also, remember to wrap your expressions, and mind the wrapping characters you use, you are using parenthesis instead of curlies for your false commands
#IF (expression) {true commands} {false commands} |
|
_________________ Discord: Shalimarwildcat |
|
|
 |
|
|