Heya. Is it possible to have toggle menus using switch select? If so how can i do this properly.
switch(select("Case 1:Case 2:if(CASE == 0) [^33CC33ON^000000] Case 3 else [^33CC33OFF^000000] Case 3")){
Case 1:
mes "Case 1 Works";
Case 2:
mes "Case 2 Works";
Case 3:
if(!CASE) {
CASE = 1;
mes "You have turned OFF Case 3";
end;
} else {
CASE = 0;
mes "You have turned ON Case 3";
end;
Question
Gidz Cross
Heya. Is it possible to have toggle menus using switch select? If so how can i do this properly.
switch(select("Case 1:Case 2:if(CASE == 0) [^33CC33ON^000000] Case 3 else [^33CC33OFF^000000] Case 3")){ Case 1: mes "Case 1 Works"; Case 2: mes "Case 2 Works"; Case 3: if(!CASE) { CASE = 1; mes "You have turned OFF Case 3"; end; } else { CASE = 0; mes "You have turned ON Case 3"; end;
corrections
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.