in reply to using logical in if statement

You are not performing the test you think you are performing.

Based on the error, it appears that you want to see whether any of the listed params contains a vertical bar. The code you have written checks for whether 'intrests' contains a vertical bar or any of the other params is non-empty and non-zero.