| View previous topic :: View next topic |
| Author |
Message |
Achiles
Joined: 04 Mar 2006 Posts: 31
|
Posted: Mon Jul 30, 2007 3:20 am Post subject: little help with "if (expression)" thx. |
|
|
why its doesnt work?
| Code: |
If (Out_Line !=" " or "%A_LoopField% %first%")
|
|
|
| Back to top |
|
 |
Sukarn
Joined: 16 Jun 2007 Posts: 35
|
Posted: Mon Jul 30, 2007 4:23 am Post subject: Re: little help with "if (expression)" thx. |
|
|
| 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 or else .
Try them all out according to what exactly you want to do. |
|
| Back to top |
|
 |
Achiles
Joined: 04 Mar 2006 Posts: 31
|
Posted: Mon Jul 30, 2007 4:42 am Post subject: |
|
|
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 |
|
 |
Helpy Guest
|
Posted: Mon Jul 30, 2007 8:59 am Post subject: |
|
|
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
|
Posted: Mon Jul 30, 2007 9:38 am Post subject: |
|
|
| %A_Space%... something I forgot about. |
|
| Back to top |
|
 |
|