[solved] exp.set does not set variable
Hey guys...I just can't figure out how come this does not work and I've tried a million different things so far. I have a sketchpad to show the [whattext] variable and just before that on the sequence an inline as shown in the pic. No matter what I tried [whattext] does not get the text assigned on the inline. Don't know what I'm doing wrong. Any ideas?

Comments
From your screenshot it seems you are setting
whattextin the run phase. However, opensesame will already have prepared the sketchpad earlier -- every item in a sequence is prepared before the first item in the sequence is run.Try placing your code in the prepare phase. does that solve your problem?
Thanks Wouter. I moved the code to the prepare phase and it works great. I always thought that the prepare vs run stages was an added convenience that one could ignore and just put everything on the run stage