A dataConfig
object has a nullable Boolean field urlIsabled
, and would like to return based on whether the dataConfig.urlIsabled
== null or the negative of the the dataConfig.urlIsabled
val result = if (dataConfig.urlIsabled != null) (dataConfig.urlIsabled != true) else true)
could it be simplified?