ConditionScopes.IfTrueScope


class ConditionScopes.IfTrueScope<T : DynamicBuilders.DynamicType?, RawT>


Condition scope to allow binding the true value in a onConditional expression, yielding a resulting Dynamic value.RawT is the native Java type that can be used when constructing a constant T (e.g. String for DynamicString).

Summary

Public functions

T!
elseUse(valueWhenFalse: T!)

Sets the value to use as the value when false in a conditional expression.

T!
elseUse(valueWhenFalse: RawT!)

Sets the value to use as the value when false in a conditional expression.

Public functions

elseUse

Added in 1.0.0
fun elseUse(valueWhenFalse: T!): T!

Sets the value to use as the value when false in a conditional expression.

elseUse

Added in 1.0.0
fun elseUse(valueWhenFalse: RawT!): T!

Sets the value to use as the value when false in a conditional expression.