display .png that is created by two var in osweb
hi
I’m converting my experiments to OSWeb and I am currently facing
a problem,
when using:
draw image center=1 file="[letter_arb1].png" scale=1 show_if=always x=323 y=-175
z_index=0
everything works fine
but when using
draw image center=1file="[[cond]_arb1].png" scale=1 show_if=always x=323 y=-175
z_index=0
and cond = letter the experimant crash with:
Uncaught TypeError: Cannot read property 'data' of undefined
and in the console: "[letter_arb1].png" does notexist"
any suggestions?
Dror

Comments
Hi Dror,
Thanks for pointing this out. Nested variable definitions indeed they don't work in OSWeb. Until that's fixed, as a workaround, you can define an intermediate variable in the Prepare phase of an
inline_javascriptitem:And then use this in the
sketchpadlike so:Hope this helps!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!