setIf

open fun <V> Field<T, V>.setIf(condition: Value<T, Boolean>, value: Value<T, V>)(source)
open fun <V> KProperty1<T, V>.setIf(condition: Value<T, Boolean>, value: Value<T, V>)(source)
open fun <V> Field<T, V>.setIf(condition: Value<T, Boolean>, value: V)(source)
open fun <V> KProperty1<T, V>.setIf(condition: Value<T, Boolean>, value: V)(source)
open fun <V> Field<T, V>.setIf(condition: Boolean, value: Value<T, V>)(source)
open fun <V> KProperty1<T, V>.setIf(condition: Boolean, value: Value<T, V>)(source)
open fun <V> Field<T, V>.setIf(condition: Boolean, value: V)(source)
open fun <V> KProperty1<T, V>.setIf(condition: Boolean, value: V)(source)

Replaces the value of a field with the specified value, if condition is true.

If condition is false, this operator does nothing.

External resources