/// <summary> /// Executes the step for the specified resource. /// </summary> /// <param name="resource">The resource.</param> public void Execute(SNAP.Scripts.IStepArgs args) { if (_if.Process(args)) { _then.Execute(args); } else if (_else != null) { _else.Execute(args); } }
/// <summary> /// Processes the specified input. /// </summary> /// <param name="input">The input.</param> /// <returns></returns> public override bool Process(object input) { return(!Negated.Process(input)); }