/// <summary> /// 조건문 체크 함수 /// </summary> /// <param name="vdata"></param> /// <param name="key"></param> /// <returns></returns> private bool CheckCase(VariableData vdata, string key) { CommonUtils.Term _term = new CommonUtils.Term(); var list = vdata.m_Dictionary_SwitchInfo; string val; if (!list.TryGetValue(key, out val)) { return(false); } string[] cases = val.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); foreach (string _case in cases) { string[] spl = _case.Split('='); if (spl.Length != 2) { return(false); } string left = spl[0].Trim().ToLower(); string right = spl[1].Trim(); double temp; if (!double.TryParse(right, out temp)) { return(false); } m_Term.Parse(right); m_Term.SetVar(left, m_Term.Value); } return(true); }