Hi,
I tried to use two if statement within one if statement in nawk and it keeps giving me the error message:
What did I go wrong here?
Thanks a lot!
#input file: qa2g:qa2_3:qa2,00380,1,Cat
#$1=qa2g:qa2_3:qa2
some=index($1,":")
if some != 0 {
if (split($1,label,

) != 0 {
iterationposition=index(label(2),_)
if iterationposition != 0 {
iteration=substr(label(2),interationposition,2)
}
}
}