public override void Handle() { base.Handle(); this.Output = true; InputList.ForEach((bool input) => { if (input) { this.Output = false; } }); }
public override void Handle() { base.Handle(); int nrOfTrue = 0; InputList.ForEach((bool input) => { if (input) { nrOfTrue++; } }); Output = (nrOfTrue == 1); }