Forum Discussion

KK_172906's avatar
KK_172906
Icon for Nimbostratus rankNimbostratus
Oct 13, 2014

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” }]

 

3 Replies

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

     

    • KK_172906's avatar
      KK_172906
      Icon for Nimbostratus rankNimbostratus
      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; }]