I have alot of "this.ID" to work with here. I only listed 3 for each condition for this example.
Anyway to shorten this???
if((this.ID == 1) || (this.ID == 4) || (this.ID == 5))
{
//do stuff
}
else if((this.ID == 12) || (this.ID == 24) || (this.ID == 27))
{
//do stuff
}
else if etc...
Anyway to shorten this???
if((this.ID == 1) || (this.ID == 4) || (this.ID == 5))
{
//do stuff
}
else if((this.ID == 12) || (this.ID == 24) || (this.ID == 27))
{
//do stuff
}
else if etc...