def or_(self, other):
if not isinstance(other, (Query, QueryCompound)) or other.isNull():<EOL><INDENT>return self.copy()<EOL><DEDENT>elif self.isNull():<EOL><INDENT>return other.copy()<EOL><DEDENT>else:<EOL><INDENT>if self.__op == QueryCompound.Op.And:<EOL><INDENT>queries = list(self.__queries) + [other]<EOL>return QueryCompound(*queries, op=QueryCompound.Op.Or)<EOL><DEDENT>else:<EOL><INDENT>return QueryCompound(self, other, op=QueryCompound.Op.Or)<EOL><DEDENT><DEDENT>
Creates a new compound query using the
QueryCompound.Op.Or type.

:param      other   <Query> || <QueryCompound>

:return     <QueryCompound>

:sa         or_

:usage      |>>> from orb import Query as Q
            |>>> query = (Q('test') != 1).or_(Q('name') == 'Eric')
            |>>> print query
            |(test isNot 1 or name is Eric)