Value.AsBool Property

Gets the boolean representation of this value.

public bool AsBool { get; }

Remarks

This method will attempt to convert the value to a number, if it isn’t already. The conversion is done in the following ways:

Exceptions

Exception Description
InvalidOperationException Thrown when the underlying value cannot be converted to a bool.

Source

Defined in YarnSpinner/Value.cs, line 141.