How to solve the error below

[parse error: PARSE syntax 119 {syntax error in expression " $pm equals “[IP::remote_addr] 80” ": unexpected operator &}][{ $pm equals “[IP::remote_addr] 80” }]

I think you need to use eq instead of equals for a string comparison.

I tried eq instead of equal. I get the error below error: [parse error: PARSE syntax 115 {syntax error in expression " $pm eq &8220;[IP::remote_addr] 80&8221; ": unexpected operator &}][{ $pm eq &8220;[IP::remote_addr] 80&8221; }]

It needs to be

&&

or

and

plus you need to be using parenthesis:

()

, not

[]

.