I have 3 conditions to check before returning true or false. Here is the table:
This can be achieved using below logic
if(!COND1 && !COND2)
{
if(COND3)
{
return False
}
else
{
return True
}
}
else
{
return true
}
Can this be simplified without using nested if ?
Aucun commentaire:
Enregistrer un commentaire