Howdy, Stranger!

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

Supported by

double quote in string comparisons not working in break if

OpenSesame version 4.1.8

Operating system Win 11

Backend PsychoPy

Expected behavior

In a loop I have a break if statement using double quotes: sufficientpractice == "yes"

In the loop a script set the value of this variable to yes, but the loops does not break.

It does break if I set the statement using single quotes: sufficientpractice == 'yes'

Actual behavior (what goes wrong)

The loop should break but it does not

Error messages (if any)

None

Sign In or Register to comment.