---
tags:
    - "Air, Blow"
---

# Wind Zone Wind Main

[Miscellaneous](../index.md) / [Wind Zone](index.md) / **Wind Zone Wind Main**

## Description

Compares the Wind Main property of Wind Zone component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Wind Zone |  |
| Compare |  |
| 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;

namespace VisualScript.Runtime
{
    [Title("Wind Zone Wind Main")]
    [Category("Miscellaneous/Wind Zone/Wind Main")]
    [Description("Compares the Wind Main property of Wind Zone component to another value")]
    
    [Image(typeof(IconWind), ColorTheme.Type.Lime)]
    [Keywords("Air, Blow")]
    
    [Parameter("Wind Zone")]
    [Parameter("Compare")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionNumber_WindZone_CheckWindMain : Condition
    {
        [SerializeField] private GetGameObject m_WindZone = new GetGameObject(
            new GenTypeGameObject_WindZone()
        );
        
        [SerializeField] private CompareNumber m_Compare = new CompareNumber();
        
        [SerializeField] private GetNumber m_Value = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Wind Main");
            return $"{this.m_WindZone} {member} {this.m_Compare} {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            WindZone component = this.m_WindZone.Get<WindZone>(args);
            if (component == null) return false;
            
            return this.m_Compare.Compare(component.windMain, (float) this.m_Value.Get(args));
        }
    }
}


```

