I'm trying to add a show/hide option to a dialog menu. The problem I have is when I press the button, it works, then brings back the menu. However when I click the button again it won't action the second if statement and closes the menu. When I reclick the menu the button works again. The code I'm using is if (message == "Show/Hide") { if (show == 0) { show = 1; llSetAlpha(0.0, ALL_SIDES); // set entire prim 100% invisible. } else { show = 0; llSetAlpha(1.0, ALL_SIDES); // set entire prim 100% visible. } llDialog(ToucherID, dialogInfo, buttons, dialogChannel); }