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