SyntaxFix
Write A Post
Hire A Developer
Questions
Try
if (!(i == 'InvKey' || i == 'PostDate')) {
or
if (i != 'InvKey' || i != 'PostDate') {
that says if i does not equals InvKey OR PostDate
InvKey
PostDate