Пример #1
0
 /// <summary>
 /// else if文の開始
 /// </summary>
 /// <param name="param">判定に使う数値パラメーター</param>
 /// <param name="exp">判定式</param>
 public void ElseIf(AdvParamSetting param, ExpressionParser exp)
 {
     if (!isIf)
     {
         isIf      = param.CalcExpressionBoolean(exp);
         isSkpping = !isIf;
     }
     else
     {
         isSkpping = true;
     }
 }
Пример #2
0
        bool isIf = false;                              //if文がtrueになったか

        /// <summary>
        /// if文の開始
        /// </summary>
        /// <param name="param">判定に使う数値パラメーター</param>
        /// <param name="exp">判定式</param>
        public void BeginIf(AdvParamSetting param, ExpressionParser exp)
        {
            isIf      = param.CalcExpressionBoolean(exp);
            isSkpping = !isIf;
        }
 bool IsEnable(AdvParamSetting param)
 {
     return(exp == null || param.CalcExpressionBoolean(exp));
 }