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

# Scrollbar Find Selectable On Down

[UI](../../index.md) / [Scroll](../index.md) / [Scrollbar](index.md) / **Scrollbar Find Selectable On Down**

## Description

Compares the Find Selectable On Down method of Scrollbar component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Scrollbar |  |
| 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("Scrollbar Find Selectable On Down")]
    [Category("UI/Scroll/Scrollbar/Find Selectable On Down")]
    [Description("Compares the Find Selectable On Down method of Scrollbar component to another value")]
    
    [Image(typeof(IconScrollBar), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Scrollbar")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Scrollbar_CheckFindSelectableOnDown_0 : Condition
    {
        [SerializeField] private GetGameObject m_Scrollbar = new GetGameObject(
            new GenTypeGameObject_Scrollbar()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Find Selectable On Down");
            string parameters = $"()";
            return $"{this.m_Scrollbar} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
            if (component == null) return false;
            
            Selectable value = component.FindSelectableOnDown();
            
            return value == this.m_Value.Get<Selectable>(args);
        }
    }
}


```

