ReactiveState
Toggle table of contents
6.0.0-preview.28
common
Target filter
common
Switch theme
Search in API
Skip to content
ReactiveState
reactivestate-core
/
com.ensody.reactivestate
/
runIf
run
If
inline
fun
<
T
,
R
>
T
.
runIf
(
value
:
Boolean
,
block
:
T
.
(
)
->
R
)
:
R
?
Returns the result of
block
if
value
is true, else null. Similar to
run
, but executes conditionally.