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
text_2.setText(’$stimData[$ponts[$curr_ind]][“String1”]’)

and displays

$stimData[$ponts[$curr_ind]][“String1”])

but if I edit the script to this

text_2.setText(stimData[ponts[curr_ind]][“String1”])

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.
Philip.

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
Philip.