move()
if(character_data[0]['x']>=1):
say("Yes")
else:
say("NO")
I'm currently working with pyscript.
When you put the code above into a code block (py-repl) and run it, (The character's position was set to x+= 1 using the move function.) In this case, the x-coordinate should be 1 and say("YES") should be executed.
All code is executed at once and say("NO") is output.
Is there any way to solve these problems?
For example, do you run the code line by line in Py-repl?
I'm not sure I'm understanding your question - here's a simple implementation of what it sounds like the rest of your code is doing:
This prints
Yes,character_data[0]['x']=1. So the issue may be in your data handling, or thesay()function or similar. Can you expand on your example, or share more code?