#create trial type to determine stimulus switching vs recurrent def TrialType(Congruency): if 'Congruency' = 'pCongruency' return 'True' elif 'Congruency' != 'pCongruency' return 'False' ... else: return '.'I have two vairalbes: 'Congruency' and 'pCongruency' where each variable has possible values of 1,2, or 3. Using SAS I was able to create a new varialbe 'TrialType' by doing a function similar to the one above. From comments so far it seems I should have return values of true or false.
I am certain there are syntax errors. I am 12 hours into python.
buran write Oct-24-2020, 10:00 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.