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 

little help with "if (expression)" thx.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Achiles



Joined: 04 Mar 2006
Posts: 31

PostPosted: Mon Jul 30, 2007 3:20 am    Post subject: little help with "if (expression)" thx. Reply with quote

why its doesnt work?
Code:

If (Out_Line !=" " or "%A_LoopField% %first%")
Back to top
View user's profile Send private message
Sukarn



Joined: 16 Jun 2007
Posts: 35

PostPosted: Mon Jul 30, 2007 4:23 am    Post subject: Re: little help with "if (expression)" thx. Reply with quote

Achiles wrote:
why its doesnt work?
Code:

If (Out_Line !=" " or "%A_LoopField% %first%")


try this
Code:

if Out_Line != " " or Out_Line != %A_LoopField% or OutLine != %first%


or

Code:

if Out_Line != " " or Out_Line != %A_LoopField%%first%


whichever you meant to do.

you might even need to use
Code:
OutLine != `  or...
or else
Code:
OutLine != {SPACE}
.
Try them all out according to what exactly you want to do.
Back to top
View user's profile Send private message
Achiles



Joined: 04 Mar 2006
Posts: 31

PostPosted: Mon Jul 30, 2007 4:42 am    Post subject: Reply with quote

if Out_Line = %LoopField% %LoopField2% %LoopField3% `
msgbox, %Out_Line%
.....

if my line is : aa bb cc{space}

loopfield = aa

loopfield2 = bb

loopfield3 = cc

` = the space

wtf ? still doesnt work..
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Mon Jul 30, 2007 8:59 am    Post subject: Reply with quote

Use %A_Space% instead.
Code:
v1 = aa
v2 = bb
v3 = cc
line := "aa bb cc "
If line = %v1% %v2% %v3%%A_Space%
   MsgBox
Back to top
Sukarn



Joined: 16 Jun 2007
Posts: 35

PostPosted: Mon Jul 30, 2007 9:38 am    Post subject: Reply with quote

%A_Space%... something I forgot about.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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