If you get a numeric value followed by "]" you can strip out the bracket and use the numerical value for comparison by the function
gensub, as in
Code:
if ( gensub("]","","g",$3) == 0 )
print "number is zero"
else
print "number is not zero"
Note that the gensub function does not alter the value of $3, unlike the functions
sub and
gsub.