Varian Posted August 24, 2008 Share Posted August 24, 2008 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 More sharing options...
Szhlopp Posted August 24, 2008 Share Posted August 24, 2008 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 matchIf "abc" = "ABC" then ; TRUEIf "abc" == "aBc" then ; FALSE&= is like equals this AND this:$test = "He"$test &= "y"$test now equals "Hey"=) RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
Nevin Posted August 24, 2008 Share Posted August 24, 2008 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 More sharing options...
Uten Posted August 24, 2008 Share Posted August 24, 2008 Also look at Language reference -> Operators in the help file.. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
burners Posted August 24, 2008 Share Posted August 24, 2008 = equal to == exact match > greater then < less then <> not equal to ~~--Feel Free to Steal my Sigs --~~FLAT LOOK____________________________________ROUNDED LOOK Link to comment Share on other sites More sharing options...
burners Posted August 24, 2008 Share Posted August 24, 2008 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 More sharing options...
LongBowNZ Posted August 24, 2008 Share Posted August 24, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now