I have array m filled with many rows in 2 columns. I want to compare a string with the content of each row in the first column. That works without any problem. I build a DO-loop to increment the row number and inside the loop I compare the string with the content of the first column in each row:
(%r = row number)
(%m = array m)
This DO-loop works perfect. Now, I have 2 arrays: array m and t and I want to compare a string with the first column in each row of each array. I build a second DO-loop around the first DO-loop:
(%a = array)
(%r = row number)
Variable a become “t” but the parsing does not work. I experimented with more % signs, but I can’t get it to work.
(%r = row number)
(%m = array m)
DO r = 0 TO %@DEC[%@arrayinfo[m,1]] BY 1
IFF %@WILD["%string%",*%m[%r%,0]*] == 1 THEN
ECHO Found
ELSE
Echo Not found
ENDIFF
ENDDO
This DO-loop works perfect. Now, I have 2 arrays: array m and t and I want to compare a string with the first column in each row of each array. I build a second DO-loop around the first DO-loop:
(%a = array)
(%r = row number)
DO a IN /L t m
DO r = 0 TO %@DEC[%@arrayinfo[%a,1]] BY 1
IFF %@WILD["%string%",*%%a[%r%,0]*] == 1 THEN
ECHO Found
ELSE
Echo Not found
ENDIFF
ENDDO
ENDDO
Variable a become “t” but the parsing does not work. I experimented with more % signs, but I can’t get it to work.