Conditional() public method

public Conditional ( QilNode left, QilNode center, QilNode right ) : QilTernary
left QilNode
center QilNode
right QilNode
return QilTernary
        //-----------------------------------------------
        // choice
        //-----------------------------------------------

        public QilNode Conditional(QilNode condition, QilNode trueBranch, QilNode falseBranch)
        {
            if (!_debug)
            {
                switch (condition.NodeType)
                {
                case QilNodeType.True:
                    return(trueBranch);

                case QilNodeType.False:
                    return(falseBranch);

                case QilNodeType.Not:
                    return(this.Conditional(((QilUnary)condition).Child, falseBranch, trueBranch));
                }
            }
            return(_f.Conditional(condition, trueBranch, falseBranch));
        }