Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ConditionComparison

Specifies the comparison operator used by a condition to compare a value against the condition's reference value.
Read time 1 minuteLast updated 7 days ago

Definition

public enum ConditionComparison

Remarks

A condition records the operator and the reference value; it does not evaluate them. The consuming runtime performs the comparison. Ordering operators such as ConditionComparison.Less only apply to values whose type supports ordering, such as numeric types; other types support ConditionComparison.Equal and ConditionComparison.NotEqual only.

Fields

Value

Description

EqualThe value equals the reference value.
GreaterThe value is greater than the reference value.
GreaterOrEqualThe value is greater than or equal to the reference value.
LessThe value is less than the reference value.
LessOrEqualThe value is less than or equal to the reference value.
NotEqualThe value does not equal the reference value.