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

# Slider Find Selectable On Down

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

## Description

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

## Parameters

| Name | Description |
| :--- | :---------- |
| Slider |  |
| 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("Slider Find Selectable On Down")]
    [Category("UI/Interaction/Slider/Find Selectable On Down")]
    [Description("Compares the Find Selectable On Down method of Slider component to another value")]
    
    [Image(typeof(IconUISlider), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Slider")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Slider_CheckFindSelectableOnDown_0 : Condition
    {
        [SerializeField] private GetGameObject m_Slider = new GetGameObject(
            new GenTypeGameObject_Slider()
        );
        
        [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_Slider} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Slider component = this.m_Slider.Get<Slider>(args);
            if (component == null) return false;
            
            Selectable value = component.FindSelectableOnDown();
            
            return value == this.m_Value.Get<Selectable>(args);
        }
    }
}


```

