4 ms·
We actually have to write boolean checks like that in Kotlin nowadays in modern Android development. If your variable type is Boolean? instead of Boolean, it is
by lnanek2 7y ago
We actually have to write boolean checks like that in Kotlin nowadays in modern Android development. If your variable type is Boolean? instead of Boolean, it is needed to both check if it is non-null and true.
- logfromblammo 7y agoI was also not allowed to use the C# ?? null-coalesce operator. So something like if( nullableBooleanVariable ?? false ) was also forbidden.