---
tags:
    - "Value"
    - "Variable"
    - "Reference"
    - "External"
---

# Boolean

## Description

Returns the value of a Boolean

## Code

```cs
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);
        }
    }
}
```

