| View previous topic :: View next topic |
| Author |
Message |
System Monitor
Joined: 09 Mar 2007 Posts: 463 Location: Unknown
|
Posted: Wed Nov 18, 2009 3:31 am Post subject: Putting % in correct places |
|
|
I want to set the variable isGreater to the 2d array row%row%col%col% * row%row%col%col + 1% * row%row%col%col+2%
How can I do do this in one expression?
I have tried the following
| Code: | isGreater := % row%x%col% A_Index + 1 * row%x%col% A_Index + 2 * row%x%col% A_Index + 3
isGreater := % row%x%col%A_Index + 1 * row%x%col%A_Index + 2 * row%x%col%A_Index + 3 |
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed Nov 18, 2009 3:34 am Post subject: |
|
|
show us in a non-one expression working example first
it will be easier for us to read than those row row col col |
|
| Back to top |
|
 |
System Monitor
Joined: 09 Mar 2007 Posts: 463 Location: Unknown
|
Posted: Wed Nov 18, 2009 3:48 am Post subject: |
|
|
| Code: | | isGreater = row1col1 * row1col2 * row1col3 |
Last edited by System Monitor on Wed Nov 18, 2009 3:49 am; edited 1 time in total |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 1770 Location: MN, USA
|
Posted: Wed Nov 18, 2009 4:37 am Post subject: |
|
|
| Code: | row1col1 = 1
row1col2 = 2
row1col3 = 3
Loop,1
isGreater := (row%A_Index%col%A_Index%) * (row%A_Index%col . A_Index+1) * (row%A_Index%col . A_Index+2)
MsgBox,% isGreater |
_________________ http://autohotkey.net/~jaco0646/ |
|
| Back to top |
|
 |
guest helper Guest
|
|
| Back to top |
|
 |
System Monitor
Joined: 09 Mar 2007 Posts: 463 Location: Unknown
|
Posted: Wed Nov 18, 2009 6:42 am Post subject: |
|
|
thanks!
lots would be an understatement  |
|
| Back to top |
|
 |
jethrow
Joined: 24 May 2009 Posts: 722 Location: Iowa, USA
|
|
| Back to top |
|
 |
|