ExpressionParser.BoolOperand.OR C# (CSharp) Method

OR() public method

public OR ( IOperand rhs ) : IOperand
rhs IOperand
return IOperand
        public IOperand OR(IOperand rhs)
        {
            if (!(rhs is BoolOperand))
                throw new RPN_Exception("Argument invalid in BoolOperand.|| : rhs");
            BoolOperand oprResult = new BoolOperand("Result");
            oprResult.Value = ((bool)this.Value || (bool)((Operand)rhs).Value) ? true : false;
            return oprResult;
        }
    }