Problem with $ variables in most recent upgrade

I have just installed the new version of Psychopy and I cannot get it to recognise $variables in text fields/objects.

so it defaults to

and displays


but if I edit the script to this


it displays the actual value of the string

I have no idea why but it now puts the builder and coder in conflict

Any advice gratefully received.

Are you putting multiple $symbols in the Builder text field? $ means interpret the following as code and should therefore only appear once.

Yes that worked thanks - which makes me wonder why it was working before.

We removed some use cases as they conflicted with JavaScript translation for online - previously if you used $ where it’s not need we just removed it, but in JavaScript the $ is used for things like specifying formatted strings so removing it was causing problems online.

1 Like

Thanks I was beginning to doubt my sanity