ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
Problem with adding attributes
-
I have one problem.I choose Component attributes and choose onClick event.There i write
IF(X>5,animate(X,X,X-5),animate(X,X,X+5))
.What mistake i have????
Thanks,Filip
-
I think you need to add quotes around the variable you want to animate, like this:
IF(X>5,animate("X",X,X-5),animate("X",X,X+5))
-
Thanks man but it doesn't work.I think i can find the problem.Where i have writed the function animate,should be writed a variable,but i dont want to change variable X,i want to call function animate,so X can be changed,but that would be like animation.
Thanks
Advertisement