Sign in to follow this  
Followers 0
Varian

Simple Question for most

7 posts in this topic

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.

Share this post


Link to post
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"

=)

Share this post


Link to post
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 +=

Share this post


Link to post
Share on other sites

= equal to

== exact match

> greater then

< less then

<> not equal to


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

Share this post


Link to post
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

Share this post


Link to post
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

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