TIapko Posted June 26, 2009 Share Posted June 26, 2009 (edited) In C i use "!=" how is equivalent at au3 ?while $a != 5 DOIT() WEnd Edited June 26, 2009 by TIapko Link to comment Share on other sites More sharing options...
James Posted June 26, 2009 Share Posted June 26, 2009 (edited) In C i use "!=" how is equivalent at au3 ?While Not $a = 5 ; DOIT() WEnd Missed code tag. Edited June 26, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
monoceres Posted June 26, 2009 Share Posted June 26, 2009 While Not $a = 5 ; DOIT() WEnd Missed code tag. No, you're wrong. while $a <> 5 DOIT() WEnd Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Valik Posted June 26, 2009 Share Posted June 26, 2009 (edited) While Not $a = 5 ; DOIT() WEnd Missed code tag.Totally wrong. That code is: While (Not $a) = 5 Where Not $a evaluates to either True or False. Edited July 2, 2009 by Valik Fixed post due to broken autoit tags. Link to comment Share on other sites More sharing options...
TIapko Posted June 28, 2009 Author Share Posted June 28, 2009 10x so much Link to comment Share on other sites More sharing options...
James Posted June 29, 2009 Share Posted June 29, 2009 Where the expression (Not $a) will be either True of False (a boolean).My bad, I always forget that. Thanks Valik. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
jvanegmond Posted July 1, 2009 Share Posted July 1, 2009 Technically, (not $a == 5) would be more like C if you know that $a is a variant.Discuss. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Valik Posted July 1, 2009 Share Posted July 1, 2009 Technically, (not $a == 5) would be more like C if you know that $a is a variant.Discuss.I fail to see what further misinformation achieves. This is the exact same answer James gave and is the wrong answer. Link to comment Share on other sites More sharing options...
jvanegmond Posted July 2, 2009 Share Posted July 2, 2009 Seeing as your tags now read "While (Not $a) = 5oÝ÷ Ùhbr¬èr·¬¦§µçhºØ¬ë-jëh×6While $a <> 5" the discussion was hard to follow.More correct would be: While (Not ($a == 5)). github.com/jvanegmond Link to comment Share on other sites More sharing options...
Valik Posted July 2, 2009 Share Posted July 2, 2009 Seeing as your tags now read "While (Not $a) = 5oÝ÷ Ùhbr¬èr·¬¦§µçhºØ¬ë-jëh×6While $a <> 5" the discussion was hard to follow.Fixed. More correct would be: While (Not ($a == 5)).No, more correct would be While $a <> 5. Your code needless uses parenthesis for grouping (The outer pair). Then it needlessly performs an equality comparison and then inverts the result. Why do all that in so many steps and cause so much extra parsing to be involved when you can just use <> and get it all done in one go? That's like using this code to test for greater-than-or-equal: If Not ($a < 3) Then Link to comment Share on other sites More sharing options...
jvanegmond Posted July 3, 2009 Share Posted July 3, 2009 Damn, I thought I could remember doing a test with the == operator once. I repeated that test and different results came out from what I had remembered. I "assumed" that: 5 == "5" returned false. Which is not the case. Sorry to bother. github.com/jvanegmond 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