mardi 5 janvier 2021

Solved: How to check if there is multiple variables set to specific text C#

Here's a representation of what I'm tryna do:

if(name.Text == "Jady") -and- (age.Text == 100)
{
(event)
}

And if for example the name is still Jady but the age is lower or higher then do something else, I guess I'm pretty specific, Right? If you have any questions, Ask in the comments. To anyone having trouble doing so

if(name.Text == "Jady") && (age.Text == 100)
{
(event)
}

thx to the ppl in the comment section for helping!

Aucun commentaire:

Enregistrer un commentaire