Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] exp.set does not set variable

edited March 2015 in OpenSesame

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?

image

Comments

  • edited 4:02AM

    From your screenshot it seems you are setting whattext in 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?

  • edited 4:02AM

    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 :)

Sign In or Register to comment.