jeudi 5 septembre 2019

How to determine which condition is false in an if statement

I have an if statement like so:

if(a > b && b < c) && (c > d && d < e) && (e > f && f < g)

Is there a way to find out which specific condition in the if statement is false in Scala 2.12? For example (c > d && d < e) is false, or simply (e > f) is false.

Aucun commentaire:

Enregistrer un commentaire