View Single Post
  #1  
Old 12-20-2011, 11:12 PM
Alpho Alpho is offline
Registered User
Alpho's Avatar
Join Date: Dec 2011
Location: California, USA
Posts: 80
Alpho will become famous soon enough
variables and tokenize

Hello, I have been tooling around with this for quite a while now, and I can't quite put my finger on how to do this correctly. I have a series of variables that look a little something like this:
PHP Code:
this.test_Yes 4;
this.test_Yea 4;
this.test_Lol 2;
this.test_Abc 3
I am trying to pull information out of the string. For instance; Lets say my account is labeled "Yes", and my buddies account is "Lol". I want to see if our accounts are existant in the variable strings, and set the number as a client flag in their attributes.

For example:
My account is Yes, so looking at the above script, I would get the number '4' added to my attributes.

How am I able to pull this information out of the variables?
I hope all of the above makes sence.

Thanks in advance,
Alpho.
Reply With Quote