AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Expression bug?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
pvi



Joined: 31 Mar 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 2:16 pm    Post subject: Expression bug? Reply with quote

Can anyone explain to my why this code:
Code:

x := 0 <= 22 and 0 >= 6

if x
   msgbox true

return


reacts different from this code?
Code:

if 0 <= 22 and 0 >= 6
   msgbox true

return


In the first case the message box doesn't show up, in the second it does. I'm running under Vista with version 1.0.47.06.
_________________
Paul Vintges
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Sat Apr 12, 2008 3:06 pm    Post subject: Reply with quote

You need
Code:
if (0 <= 22 and 0 >= 6)
otherwise 0 is compared to the string "22 and 0 >= 6"
Back to top
View user's profile Send private message Visit poster's website
pvi



Joined: 31 Mar 2008
Posts: 6

PostPosted: Sat Apr 12, 2008 3:45 pm    Post subject: Reply with quote

ok, thx
_________________
Paul Vintges
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group