Jump to content

Recommended Posts

Posted

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.

Posted

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"

=)

Posted

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 +=

Posted

= equal to

== exact match

> greater then

< less then

<> not equal to

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

Posted

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

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
×
×
  • Create New...