sorry for asking something so basic but for me is too much...
with your code (tank you very much

),
Code:
data =
(
a
b
c
d
e
f
g
)
; Method 1
Loop Parse, data, `n, `r
{
If A_LoopField
{
prefix := Mod( A_Index, 2 ) ? "PPP" : "UUU"
result1 .= prefix . A_Index . " = " . A_LoopField . "`r`n"
}
}
; Method 2
Loop, parse, data, `n, `r
{
If A_LoopField
{
toggle := !toggle
prefix := toggle ? "PPP" : "UUU"
result2 .= prefix . A_Index . " = " . A_LoopField . "`r`n"
}
}
;msgbox % "Method 1:`n" result1 "`nMethod 2:`n" result2
;exitapp
Code:
send, % "Method 1:`n" result1 "`nMethod 2:`n" result2
result is:
Quote:
Method 1:
PPP1 = a
UUU2 = b
PPP3 = c
UUU4 = d
PPP5 = e
UUU6 = f
PPP7 = g
Method 2:
PPP1 = a
UUU2 = b
PPP3 = c
UUU4 = d
PPP5 = e
UUU6 = f
PPP7 = g
I need:
Quote:
PPP1 = a
UUU1 = b
PPP2 = c
UUU2= d
PPP3 = e
UUU3 = f
How to please?
