lundi 20 juillet 2020

If condition (multiple cond) [closed]

Need help with my if conditions.

if(userId && !targetId){
// query logic for userid and no targetid
} 
else if (!userId && targetId){
// query logic for targeted and no user id
}

Now how do I write the "else" part? another query logic for when both userid and target id are present.

Aucun commentaire:

Enregistrer un commentaire