Howdy, Stranger!

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

Supported by

[solved] concatenate in ‘Run if’ option

edited May 2013 in OpenSesame

Hi,

Thank you always for your help.
I want to concatenate two conditions in 'Run if' statement. One is Python code "=self.time() - self.get('start_time') <= 10000", the other is OpenSesame syntax "[correct]=1" or "= self.get('correct') == 1". How can I write in order to concatenate ?

Thanks in advance.

Comments

  • edited May 2013

    Hi,

    You can concatenate the two criteria by the Python 'and' operator to indicate that both criteria should be met in order to run a certain item:

    =self.time() - self.get('start_time') <= 10000 and self.get('correct') == 1
    

    Does this help?

    Best wishes,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 8:14PM

    Hi, Lotje

    Thank you so much!
    It works.

    Koba

  • edited 8:14PM

    Glad to hear that! Don't hesitate to post any further questions!

    Did you like my answer? Feel free to Buy Me A Coffee :)

Sign In or Register to comment.