money.rave.common.backend.expression.clause.If.kt Maven / Gradle / Ivy
package money.rave.common.backend.expression
class If(
private val condition: Expression,
private val ifMatch: Expression,
private val notMatch: Expression,
) : Clause() {
override fun evaluate(context: EvaluationContext, candleIndex: Int): T = if (condition.evaluate(context, candleIndex)) ifMatch.evaluate(context, candleIndex) else notMatch.evaluate(context, candleIndex)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy