Is Null Or WhiteSpace


Node Information
Inicates whether the specified string null, empty, or consits of white-space character.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Text IN String ONE FALSE FALSE
Result OUT Boolean MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.String
{
    [IsNode("IsNullOrWhiteSpace Expression")]
    public class StringIsNullOrWhiteSpace : Node
    {
        Port a = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Text");
        Port length = new Port(PortType.OUT, typeof(bool), AcceptsLinks.MULTIPLE, "Result");
        public string String
        {
            set { a.Value = value; }
            get { return GetRuntimeValue(a); }
        }
        public StringIsNullOrWhiteSpace()
        {
            this.Name = "Is Null Or WhiteSpace";
            AddPort(a);
            AddPort(length);
            length.Instructions = "init";
            Information = "Inicates whether the specified string null, empty, or consits of white-space character.";
        }
        public override void UpdateResults()
        {
            length.Instructions = "string.IsNullOrWhiteSpace(" + GetValue(a) + ")";
        }
    }
}