Value.CompareTo Method
Compares this Value to another Value.
public int CompareTo(Value other)
Remarks
The method of comparison depends upon the value’s Yarn.Value.BackingValue.
-
If this value is
String, then the String class’sStringComparison)method is used. -
If this value is
Number, then the float type’sSingle)method is used. -
If this value is
Bool, then the bool type’sBoolean)method is used. -
If this value is
null, the result will be the value 0. -
If
otherisnull, the result will be the value 1.
Parameters
| Parameter | Description |
|---|---|
Value other |
The other Value to compare to. |
Return Type
Int32: Returns the result of comparing this Value against other.
Source
Defined in YarnSpinner/Value.cs, line 310.