Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Boolean#

Description#

Returns the value of a Boolean

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Boolean")]
    [Image(typeof(IconToggleOn), ColorTheme.Type.Yellow)]
    
    [Description("Returns the value of a Boolean")]
    [Category("Boolean")]
    
    [Keywords("Value", "Variable", "Reference", "External")]
    
    [Serializable]
    public class ConditionCoreBoolean : Condition
    {
        [SerializeField] private GetBool m_Value = new GetBool();

        protected override string GetTitle(GameObject source) => this.m_Value.ToString();

        protected override bool Run(Args args)
        {
            return this.m_Value.Get(args);
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.