public if_(Params_ ask, Params_ true_, Params_ false_, if_ parrent) { this.ask = ask; ask.parrent = this; this.true_ = true_; true_.parrent = this; this.false_ = false_; false_.parrent = this; this.parrent = parrent; output = "(" + ask.Value + ")?(" + true_.Value + "):(" + false_.Value + ")"; }
public override void DownReplace(Params_ true_, Params_ false_) { if (input == "0") { parrent.Replace(this, false_.Clone(parrent)); } else if (input == "1") { parrent.Replace(this, true_.Clone(parrent)); } else { parrent.Replace(this, new if_(this, true_, false_, parrent)); } }