79287516

Date: 2024-12-17 10:38:09
Score: 2
Natty:
Report link

The format should be... if (! (x in array))

It's not just the whole 'if' that needs to be in parentheses (), but also the "x in array", i.e. (x in array) so that awk applies the not (!) to the (x in array) boolean result and not to just x. Perhaps the 'in' operator should have higher precedence than '!'.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Simon