I think that your issue is that elseif doesn’t work in JavaScript (and you’ve written it else if). If you had used Auto translation then you would have discovered if A: elseif B: becomes if A {} else {if B {}}
I think that your issue is that elseif doesn’t work in JavaScript (and you’ve written it else if). If you had used Auto translation then you would have discovered if A: elseif B: becomes if A {} else {if B {}}