Nested if-statement
Posted: Tue Sep 08, 2009 7:59 pm
In the console I want to define a function with a nested if-statement but I noticed: it doesn't work
I typed it in like this:
scene.my.var = (x) => { if ? { if ? {then} : {else} } : {else} }
But I get an error because the console hates me. Any ideas how to get it to work?
I typed it in like this:
scene.my.var = (x) => { if ? { if ? {then} : {else} } : {else} }
But I get an error because the console hates me. Any ideas how to get it to work?