Troubleshooting
What am I doing wrong, this seems so basic...
Started by mh175 on .
Sign in or create an account to join the conversation.
(see attachment)
I have a project variable 'var'
I have a fader, 'Fader'. The fader has a 5 step grid.
I have a pad, 'pad', that responds to Fader x position, and changes the value of 'var'.
Code for Pad:
Bug.jzml
I have a project variable 'var'
I have a fader, 'Fader'. The fader has a 5 step grid.
I have a pad, 'pad', that responds to Fader x position, and changes the value of 'var'.
Code for Pad:
if (Fader.x=0)var=1;
if (Fader.x=.25)var=2;
if (Fader.x=.5)var=3;
if (Fader.x=.75)var=4;
if (Fader.x=1)var=5;
What keeps happening is that var gets stuck at 5, and every time I hit Pad, Fader jumps to 1.Bug.jzml
Hi
It works fine but your not telling it the right thing . . . .
= is assignment
== is comparison
Try if (Fader.x==0)var=1; etc . . .
Cheers
MM
It works fine but your not telling it the right thing . . . .
= is assignment
== is comparison
Try if (Fader.x==0)var=1; etc . . .
Cheers
MM
Thank you!
I need to look that up again.
I need to look that up again.