---
tags:
    - "UI, User, Interface"
---

# Selectable Find Selectable On Up

[UI](../../index.md) / [Interaction](../index.md) / [Selectable](index.md) / **Selectable Find Selectable On Up**

## Description

Compares the Find Selectable On Up method of Selectable component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Selectable |  |
| Value |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.UI;

namespace VisualScript.Runtime
{
    [Title("Selectable Find Selectable On Up")]
    [Category("UI/Interaction/Selectable/Find Selectable On Up")]
    [Description("Compares the Find Selectable On Up method of Selectable component to another value")]
    
    [Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Selectable")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Selectable_CheckFindSelectableOnUp_0 : Condition
    {
        [SerializeField] private GetGameObject m_Selectable = new GetGameObject(
            new GenTypeGameObject_Selectable()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Find Selectable On Up");
            string parameters = $"()";
            return $"{this.m_Selectable} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Selectable component = this.m_Selectable.Get<Selectable>(args);
            if (component == null) return false;
            
            Selectable value = component.FindSelectableOnUp();
            
            return value == this.m_Value.Get<Selectable>(args);
        }
    }
}


```

