using Artemis.Core; namespace Artemis.VisualScripting.Nodes.Operators; [Node("Equals", "Checks if the two inputs are equals.", "Operators", InputType = typeof(bool), OutputType = typeof(bool))] public class EqualsNode : Node { #region Constructors public EqualsNode() : base("Equals", "Checks if the two inputs are equals.") { Input1 = CreateInputPin(); Input2 = CreateInputPin(); Result = CreateOutputPin(); } #endregion #region Methods public override void Evaluate() { try { Result.Value = Equals(Input1.Value, Input2.Value); } catch { Result.Value = false; } } #endregion #region Properties & Fields public InputPin Input1 { get; } public InputPin Input2 { get; } public OutputPin Result { get; } #endregion }