public override void Perform() { string value = GetValue(GetElement()); if (!(string.IsNullOrEmpty(value) && FliterEmptyString)) { ActionArrayVariable arr = VariableModel.Find <ActionArrayVariable>(ObjectName); if (arr == null) { throw new ApplicationException("变量" + ObjectName + "未找到"); } arr.AddItemToArray(value); } }
public override void Perform() { Element element = GetElement(); if (!element.Exists) { ActionArrayVariable arr = VariableModel.Find <ActionArrayVariable>(ObjectName); if (arr == null) { throw new ApplicationException("变量" + ObjectName + "未找到"); } arr.AddItemToArray(""); } }