From a92c0adaf4b7d41a528a5f36743cb5e42dba8667 Mon Sep 17 00:00:00 2001 From: "aytac.kayadelen" Date: Wed, 24 Aug 2022 12:02:26 +0300 Subject: [PATCH] update output namings --- .../Nodes/Text/StrıngNullOrEmpty.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Artemis.VisualScripting/Nodes/Text/StrıngNullOrEmpty.cs b/src/Artemis.VisualScripting/Nodes/Text/StrıngNullOrEmpty.cs index 7dd6b1d0b..df1f5ee65 100644 --- a/src/Artemis.VisualScripting/Nodes/Text/StrıngNullOrEmpty.cs +++ b/src/Artemis.VisualScripting/Nodes/Text/StrıngNullOrEmpty.cs @@ -2,7 +2,7 @@ namespace Artemis.VisualScripting.Nodes.Text; -[Node("String Null or WhiteSpace", "Checks whether the string is null or white space.", +[Node("String Null or WhiteSpace", "Checks whether the string is null, empty or white space.", "Text", InputType = typeof(string), OutputType = typeof(bool))] public class StringNullOrWhiteSpaceNode : Node { @@ -10,20 +10,20 @@ public class StringNullOrWhiteSpaceNode : Node : base("Null or White Space", "Returns true if null or white space") { Input1 = CreateInputPin(); - TrueResult = CreateOutputPin("true (Empty)"); - FalseResult = CreateOutputPin("false (Not Empty)"); + NullOrWhiteSpaceResult = CreateOutputPin("White Space"); + HasContentResult = CreateOutputPin("Has Content"); } public InputPin Input1 { get; } - public OutputPin TrueResult { get; } + public OutputPin NullOrWhiteSpaceResult { get; } - public OutputPin FalseResult { get; } + public OutputPin HasContentResult { get; } public override void Evaluate() { bool isNullOrWhiteSpace = string.IsNullOrWhiteSpace(Input1.Value); - TrueResult.Value = isNullOrWhiteSpace; - FalseResult.Value = !isNullOrWhiteSpace; + NullOrWhiteSpaceResult.Value = isNullOrWhiteSpace; + HasContentResult.Value = !isNullOrWhiteSpace; } } \ No newline at end of file