and

abstract fun and(otherCondition: TValue.() -> Boolean): PropertyState<TValue>(source)

Check another rule for the property.

Return

the new property state. Correct if this state is Correct and otherCondition holds. Otherwise Incorrect.

Parameters

otherCondition

the condition the property must also comply with. This function is only invoked for properties that are correct at this point.