Hi I have a very quick question about writing if statements.
When the user clicks a button I want h1 and h2 to either appear or dissapear depending on their current state, I can get just one to work (i.e. h1 on its own) but I don't know the correct syntax for two or even three variables. I've shown my code below, as you can see I thought a comma might work to separate the values but it doesn't.
code:
on (release) {
if (h1,h2._visible) {
h1,h2._visible = false;
} else {
h1,h2._visible = true;
}
}




Reply With Quote