|| is for separating conditions, not parameters to conditions. For example:
if ( $1- == hello || goodbye ) { }
will be parsed as:
if ( $1 == hello ) || ( goodbye ) { }
That /if statement will always be true, as "goodbye" is not $null, $false or 0.

In this case you can avoid the problem entirely by using:
if ( $banmask iswm $address($me,5) ) { dostuff }