Mingi Lurker Jun 10, 2019 #1 Is there a way to execute when the same Position is selected? For example, if 0 is currently selected, selecting 0 again will cause the same event to occur again.
Is there a way to execute when the same Position is selected? For example, if 0 is currently selected, selecting 0 again will cause the same event to occur again.
Brian Berry Well-Known Member Jun 10, 2019 #2 use a switch statement switch(selected){ case 0: //do something break; case 1: //do something break; } Last edited: Jun 11, 2019
use a switch statement switch(selected){ case 0: //do something break; case 1: //do something break; }