|
Post by psypsyash on May 19, 2024 13:02:42 GMT
Currently using Ver 3.4.6 on the European server. I am trying to make the following "or" condition for my experiment, here is a snippet of the code: if @1 == 3 show circle $aa $ab $mysize 255 0 200 # pink circle show circle $ba $bb $mysize 100 200 100 # green circle show circle $ca $cb $mysize 100 0 200 # purple circle or show circle 350 200 $mysize 0 0 100 fi others have used the 'or' command successfully, however, my version seems to not recognise the command. I keep receiving the error, "ERROR: unknown_command in line: 135 >>> or Command or is unknown and will be ignored." I have tried the variants: "OR" and "||". I have also tried adding and deleting a space after "or". Nothing works. I have tried version 3.4.4 as well. Is there a new command now? Please help!! Link to the "or" function discussion, in which it seemed to work for others using older versions: psytoolkit.boards.net/thread/116/nested-conditional-statements
|
|
|
Post by mb3258 on Jun 7, 2024 19:55:17 GMT
Hello, do you mind clarifying what your overall goal is here? I could help you better, then! But based on what I'm seeing:
The purpose of 'or' is to specify conditions within the if statement, example: if @1 == 3 or @1 == 2
For something within the if statement, you would need to specify either another condition or create a variable that would select one of those two variables for you.
|
|