Deleting and Creating symbol instances
hello edge animate community!
i have run problem have spent long time trying figure out no avail. hope reading able me out
i'll start off saying knowledge of webcode not best, learning go.
i working on project uses "if then" statments. example
sym.setvariable("test","0");
if (test = 0) {// code }
else { / /other code }
now "if then" statment works fine problem code able put 1 of 2 options seems limited. i'm not sure if have set wrong or what, need able delete , create instances of symbols/elements depending on variable "test".
so example if "test" equals 0 want delete symbol "update" code is...
sym.setvariable("test","0");
if (test = 0) {sym.getsymbol("update").deletesymbol();}
else {}
however code doesn't work??? if use
sym.getsymbol("update").deletesymbol();
then code works fine. when put in if statment fails excute??? can put other code in if statment, such alert(test); , proper alerts ect.... don't believe statment itself. wrong.
has else had problem? appreciate advise. thank much!
when compare need 2 == signs.
if (test == 0) {sym.getsymbol("update").deletesymbol();}
else {}
x == 5 equal 5
x === 5 equal 5
x!= 5 not equal 5
x>5 greater 5
x>=5 greater or larger 5
More discussions in Edge Animate CC
adobe
Comments
Post a Comment