Sign in to follow this  
Followers 0
OnTheFly

Put text and variables together

7 posts in this topic

Ok, i want to put som text and variables in a variable. I tested the PHP way:

$var = "text" . $var2 . "moretext" . $var3

But that didn't work. How can i do this?

Share this post


Link to post
Share on other sites



AU does not use . as the add symbol like in PHP. Instead, it is the & symbol. A little more intuitive than with PHP in my opinion. Check through the helpfile and you'll find great examples.


A decision is a powerful thing

Share this post


Link to post
Share on other sites

AU does not use . as the add symbol like in PHP. Instead, it is the & symbol. A little more intuitive than with PHP in my opinion. Check through the helpfile and you'll find great examples.

Thx, can i use the \" things like in PHP?

Share this post


Link to post
Share on other sites

If you're refering to quotes-inside-quotes, then you must do ' " test " '

So use ' instead of \


A decision is a powerful thing

Share this post


Link to post
Share on other sites

If you're refering to quotes-inside-quotes, then you must do ' " test " '

So use ' instead of \

Thanks!

Share this post


Link to post
Share on other sites

Sorry, but i can't find this in the docs. Is \n a newline? Or how do i do it?

Share this post


Link to post
Share on other sites

Look in Macro Reference AutoIt-related Macros

@CR

Carriage return, Chr(13); sometimes used for line breaks.

@LF

Line feed, Chr(10); typically used for line breaks.

@CRLF

= @CR & @LF ;occasionally used for line breaks.

@TAB

Tab character, Chr(9)


A decision is a powerful thing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0