samedi 28 septembre 2019

Avoid a lot of conditions inside an If Statement

I have an if statement like this

if(check1 && check2 && check3 && check4 && check5 && check7 && check8 && check9 && check10 && check11 && check12 && check13)

This if statement includes lots of conditions and it is not readable.How can i avoid this situation? Is there any pipeline pattern for if conditions?

Aucun commentaire:

Enregistrer un commentaire