Support » Plugin: Insert PHP » Or in if statement

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    hihitavec, Testing it on my site, if find the vertical bar or (“||”) is causing it.

    Insert PHP runs the code by putting it into an eval(). It seems “||” and “|” need special handling and I don’t have the answer immediately.

    If you can use “or” instead of “||” then it should work.

    Will

    Plugin Author WillBontrager

    (@willbontrager)

    Because there has been no response, I’m assuming the original poster resolved the issue.

    Plugin Author WillBontrager

    (@willbontrager)

    Hmm, forgot to check the “Mark this topic as resolved” box.

    So, this extra post to get the thread marked resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Or in if statement’ is closed to new replies.