public override void ExecuteList(CommandEventArgs e, ArrayList list) { try { string[] args = e.Arguments; ObjectConditional condition = ObjectConditional.Parse(e.Mobile, ref args); for (int i = 0; i < list.Count; ++i) { if (condition.CheckCondition(list[i])) { AddResponse("True - that object matches the condition."); } else { AddResponse("False - that object does not match the condition."); } } } catch (Exception ex) { e.Mobile.SendMessage(ex.Message); Diagnostics.ExceptionLogging.LogException(ex); } }
public override bool IsValid(object obj) { return(m_Conditional.CheckCondition(obj)); }