09
Jul
asfunction – Use more than one variable!
So I was trying to use asfunction to pass two variables, well because I needed two. So after a few hours of looking for a pre-existing script to do this or some other way to do it I just do frustrated and wrote my own script that will let me pass (theoretically) as many variables as my heart desires.
It’s a rather simple/small script that plays off how asfunction treats all text after the first comma as a string. So realizing this you can use special characters (I use a comma) to separate your variables. You then pass the single string that contains your vars to a function that searchers for that special char and breaks the string apart and puts your vars into an array.
Get it? Simple, eh?
Anyways, link to source script.
1 Comment
Pingbacks