Jump to content

Simple Question for most


 Share

Recommended Posts

What is the difference when you use 2 equal signs? (a== b instead of a=;) Also, I have seen this in several scripts (&=). What does that mean? If you have any links or ideas that give me more info, please send them as they would be greatly appreciated. TIA.

Link to comment
Share on other sites

What is the difference when you use 2 equal signs? (a== b instead of a=;) Also, I have seen this in several scripts (&=). What does that mean? If you have any links or ideas that give me more info, please send them as they would be greatly appreciated. TIA.

"==" means an exact match

If "abc" = "ABC" then ; TRUE

If "abc" == "aBc" then ; FALSE

&= is like equals this AND this:

$test = "He"

$test &= "y"

$test now equals "Hey"

=)

Link to comment
Share on other sites

Yep. =& is a shortcut with concatenation, that confused me for a while too.

Another way to write what he wrote about would be

$test = "He" & "y"

&= is just writing it shorter.

Sort of like how you can increment with +=

Link to comment
Share on other sites

Also look at Language reference -> Operators in the help file..;)

I second that. I was literally was able to teach myself how to code autoit (less the complex stuff) with just the help file and the abundance of example scripts.

I have never seen a help file as neat and usefull as autoit.

Try learning VB, those help files are a mess and dont usually give a full example of working code to test and see how and what its doing.

~~--Feel Free to Steal my Sigs --~~FLAT LOOK____________________________________ROUNDED LOOK

Link to comment
Share on other sites

What is the difference when you use 2 equal signs? (a== b instead of a=;) Also, I have seen this in several scripts (&=). What does that mean? If you have any links or ideas that give me more info, please send them as they would be greatly appreciated. TIA.

Link answers your questions and more.

http://www.autoitscript.com/autoit3/docs/i...g_operators.htm

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...