Here's the code I'm using to hide and show a text using one button.

on (release) {
if(text._visible=true) {
text._visible=false;
} else if (text._visible=true)
text._visible=false;
}

it hides it but doesn't show again, why ? using dynamic text, I also tried only if condition but that also does the same. Thanx