Esempio n. 1
0
        /// <summary>
        /// Execute the condition
        /// </summary>
        /// <returns>Return true or false, even in case of error</returns>
        private bool RunCondition()
        {
            var conditionResult = ConditionInterpreter.RunCondition(BaZicInterpreter, ParentInterpreter, Statement.Condition);

            if (ParentInterpreter.IsAborted || conditionResult == null)
            {
                return(false);
            }

            return(conditionResult.Value);
        }
Esempio n. 2
0
        /// <inheritdoc/>
        internal override void Run()
        {
            var conditionResult = ConditionInterpreter.RunCondition(BaZicInterpreter, ParentInterpreter, Statement.Condition);

            if (ParentInterpreter.IsAborted || conditionResult == null)
            {
                return;
            }

            ConditionValidated = conditionResult.Value;
        }