tapac
val q = XTable.select { (XTable.c1 eq v1) and (XTable.c2 eq v2) } if (condition) { q.adjustWhere { this!! and (XTable.c3 eq v3) } } q.forEach {}