Check multiple option values in Scala
Two main approaches for doing this, the second one being for me the most appropriate.
Check values using regular if conditions:
1if (opt1.isDefined && opt2.isDefined && opt3.isDefined) // do something
Check values using match:
1(opt1, …