Page 1 of 1

what is this? aprq2 1.19 :O

Posted: Sat Apr 01, 2006 7:53 pm
by Cnnlngs
-r1q2 text${var}text scripting support.
[/code]

Posted: Sun Apr 02, 2006 1:53 am
by NRGizeR
My guess is that it works like in a bash script... if you put a variable inside text you need to have braces around it ( {} ) in order for the variable to be recognized.

i.e. you could have a variable $firstword, that is set to "dick"
and then you could insert that into other text like for example:

Code: Select all

say "you gay ${firstword}head"
(which would ofcourse produce "you gay dickhead")

If you don't have the braces q2 would be looking for a variable that was named $firstwordhead, but since the braces are in place, it inserts the correct variable, and then puts the head at the end as text.
Note that this is only a qualified guess, I could be wrong about this :)

Posted: Sun Apr 02, 2006 5:06 am
by gegoj
Is there a list of all pre-defined macros/variables for aprq2?

There are some in the readmes, but i doubt that those are all.

Posted: Sun Apr 02, 2006 5:38 am
by AK
gegoj wrote:Is there a list of all pre-defined macros/variables for aprq2?
Check that aprq2_readme.txt in the aprq2 zip file. :o

Posted: Sun Apr 02, 2006 9:26 am
by Cnnlngs
My guess is that it works like in a bash script... if you put a variable inside text you need to have braces around it ( {} ) in order for the variable to be recognized.
yeah you're right ${firstword}head :D
thanks :P

Posted: Sun Apr 02, 2006 11:12 am
by V34
New Censured Version of ${firstword}head !