Boolean


Node Information
Boolean, true or false.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT Boolean MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("Bool")]
    public class VarBool : Node
    {
        Port val = new Port(PortType.OUT, typeof(bool), AcceptsLinks.MULTIPLE, "Value");
        public VarBool()
        {
            NodeType = KGraph.NodeType.Variable;
            ReturnType = typeof(bool);
            Name = "Boolean";
            val.Value = "true";
            AddPort(val);
            Information = "Boolean, true or false.";
        }
        public override string Code()
        {
            return val.Value.ToLower();
        }
    }
}