 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
gsteingold Guest
|
Posted: Mon May 03, 2004 1:49 pm Post subject: InputBox and if |
|
|
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
|
Posted: Mon May 03, 2004 2:20 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|