Hey Everyone! Trying to do a simple button nav where a button clicked is selected and the other buttons are deselected (scale up and scale back effect). I have my buttons in an array and through a loop but looks like I'm having issues with the conditional. Is there a way to write this with "state" events or are there any other more efficient ways to write this? My buttons click to scale up but the buttons that are not clicked don't scale back..
btnArray = [btn1, btn2, btn3, btn4, btn5]
for btns in btnArray
btns.onClick (event, layer) ->
if this.states.a = true