Howdy, Stranger!

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

Supported by

Break if with Form Base

Hey there,

New to OpenSesame but wanting to end a sequence in a loop if a certain response is given on a form. Currently using a rating scale and cant get the sequence to "break if" '[variable]='0' . Any help would be awesome

Comments

  • Hi @emilybraley,

    This can have many different causes.

    Is your variable supposed to take an alphanumerical value as opposed to a numerical value? The way you've written your condition means that the task will check your variable against a string containing zero, and not the actual numerical value 0 (because you used '[variable]='0' instead of [variable]=0. Also, when expressing conditions in that field, you should use == instead of =, so it should be [variable] == 0. Incidentally, from Open Sesame 4, it is no longer necessary to use the [ ] symbols in the "break if" field to refer to a variable, you can simply write variable == 0.

    Hope this helps,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.