scratch-dsl
Toggle table of contents
master
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
scratch-dsl
scratch-dsl
/
org.scratchapi.scratchdsl
/
ifElseBlock
if
Else
Block
fun
BlockHost
.
ifElseBlock
(
expression
:
Expression
?
,
block
:
BlockHost
.
(
)
->
Unit
)
:
HalfIfElse
Starts an 'if-else' block.
Parameters
expression
The condition to check.
block
The script to run if the condition is true.