Howdy, Stranger!

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

Supported by

[solved] connect two show_if commands

edited February 2015 in OpenSesame

Hi,
I guess there is a really easy solution for this problem. I would like to write a show_if statement, in which the two criteria need to be met. I use a feedback item. The whole thing looks like this now:

draw image 256 0 "[US]" scale=0.5 center=1 z_index=0 show_if="[trial_type] == 1"

draw textline 256 0 "A" center=1 color="#000000" font_family="mono" font_size=18 font_bold="no" font_italic="no" html="yes" z_index=0 show_if= ["[trial_type] == 0" and "[response_keyboard_response]== k"]

draw textline 256 0 "B" center=1 color="#000000" font_family="mono" font_size=18 font_bold="no" font_italic="no" html="yes" z_index=0 show_if= ["[trial_type] == 0" and "[response_keyboard_response]== d"]

The first line works just perfectly, but the rest does not. The problem is probably somewhere in between the brackets :), but since I could not find any solution in any other discussion, I would really appreciate it if someone knew a (more or less) easy answer.

Thanks!

Comments

  • edited February 2015

    hi
    the problem is with your brackets
    try

    show_if="[trial_type] == 0 AND [response_keyboard_response]== d"

    show_if="[trial_type] == 0 AND [response_keyboard_response]== k"

    dror

  • Great, thank you. After deleting the parenthesis it worked :)

    show_if="[trial_type] == 0 AND [response_keyboard_response]== d"

    show_if="[trial_type] == 0 AND [response_keyboard_response]== k"

Sign In or Register to comment.