How do I make an if statement that asks if multiple listBoxes are empty or not?
This is what I have so far...is it possible to combine it into one single if statement?
if (listBoxEmails.Items.Count < 1)
{
//Perform action
}
if (listBoxWebsites.Items.Count < 1)
{
//Perform action
}
if (listBoxComments.Items.Count < 1)
{
//Perform action
}
if (listBoxEmails.Items.Count >= 0 && listBoxWebsites.Items.Count >= 0 &&
listBoxComments.Items.Count >= 0)
{
//perform action
}