Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Runtime /VisualScripting.Flow /Framework /Logic /Less.cs
| namespace Unity.VisualScripting | |
| { | |
| /// <summary> | |
| /// Compares two inputs to determine whether the first is less than the second. | |
| /// </summary> | |
| [] | |
| [] | |
| public sealed class Less : BinaryComparisonUnit | |
| { | |
| /// <summary> | |
| /// Whether A is less than B. | |
| /// </summary> | |
| [] | |
| public override ValueOutput comparison => base.comparison; | |
| protected override bool NumericComparison(float a, float b) | |
| { | |
| return a < b; | |
| } | |
| protected override bool GenericComparison(object a, object b) | |
| { | |
| return OperatorUtility.LessThan(a, b); | |
| } | |
| } | |
| } | |