using an if statement to create counter balancing online
url of experiment: <https://pavlovia.org/run/lucy23/spatial_localisation/html/>

description of the problem:

what do i want to happen?

i am looking to add a counter balancing code component for an online experiment with 2 possible orders (task 1 and 2 first or task 3 and 4 first)

what have i tried? …
[image] lucy:

$“conditions”+”group”+”.xlsx”

the above isn’t variable – it will always give “conditionsgroup.xlsx”. do you mean $conditions+group+".xlsx"
What problem are you facing? Post the error that you get.  

Also please edit your first post by aligning the code properly and wrap [code] tag so that it is easily understandable for us to analyze. Please post your code so that we can help you. Well.



Think about what you know about lifts.



Go with the theory of 2 lifts, one you have more than 1 lift the logic is the same you just have more options.



Lifts go 1 of 2 ways. up or down.  

A lift at floor 1 told to go up, if someone rings the bell on 3 and the lift is going there or passing there on the way up and the person said "up" on 3.. then it will stop, otherwise if its not due to stop there and the person said down, it wont. The other lift will get the job, or if both are going up, then it will be the first available lift.



Your lift needs states waiting/up/down



Your logic shouldnt be that complex, so, write down in words what your logic choices are, senarios etc



Then you should be ready to code it It's going to be sheer luck anyone is running that setup so try this. Break the problem down to smaller steps. If a step can't be accomplished then it's too big a step. Break it down further. not [full disclosure] a linux person per se.

something similar to the following should work:

https://www.unix.com/shell-programming-and-scripting/68166-converting-integer-string.html

start simple with just enough code to test the concept.

see if it works and modify/correct as necessary.

then if it still does not work, then post your documented code accordingly along an explanation of what is or is not happening as you expect or desire. okay, i think i see what you’re trying to do. so, it’s similar to the previous answer, but i just added one more line of code from their edit:

@zoom on 188 221 to 243% in 0

&jacob walks to spot 0.506 152 270 in 2 and jacob faces left and jacob starts dance\_lift\_receive\_start then jacob is idle\_lay… i guess this is one thing to try when all the others have failed. The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-47621.pdf if you are still facing the issue, try this Hi,


What attempts have you made at this? Have you got any code written yet?


Thanks