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 

InputBox and if

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





PostPosted: Mon May 03, 2004 1:49 pm    Post subject: InputBox and if Reply with quote

In this example if I write test, never show if, but if I add autotrim, off
%sistema%=%sistema%, before 'if' all is ok.

My PC:

Windows 2000
autohotkey v.1.0.08


code
-----

InputBox, sistema, Some word?
If %sistema%=test
{
msgbox if
}
else
{
msgbox else
}
return
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Mon May 03, 2004 2:20 pm    Post subject: Reply with quote

The line "If %sistema%=test" should be "If sistema=test".

In other words, percent signs are normally not used around an input variable (e.g. the left side of a comparison operator such as equals or less-than).
Back to top
View user's profile Send private message Send e-mail
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