See answers here: https://github.com/scalafx/scalafx/discussions/375#discussioncomment-8750971
val e = BooleanProperty(false)
val f = BooleanProperty(false)
val g = BooleanProperty(false)
val x = BooleanProperty(false)
val bools = Seq(e, f, g)
// Since will will be folding on OR, we will start with FALSE initial binding
val dummyBinding = BooleanProperty(false) && BooleanProperty(false)
x <== bools.fold(dummyBinding)(_ || _)
--
You received this message because you are subscribed to the Google Groups "ScalaFX Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalafx-users/034325f7-a86f-4cf1-a0bf-5a091e3c8867n%40googlegroups.com.