Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Script ends
- nerdcraft
- Scratcher
54 posts
Script ends
I am making a OS. (Shhh…)
This ends when I answer the 1st question:
This ends when I answer the 1st question:
when green flag clicked
ask [Do you have a user account? Y/N] and wait
if <(answer) = [Y]> then
add [Yeah right] to [commands]
else
if <(answer) = [N]> then
ask [What do you want the password to be?] and wait
set [ password] to (answer)
end
Last edited by nerdcraft (Dec. 28, 2013 06:34:34)
a_var="string data" a_second_var=123 if "boolean": print(a_var) else: print(a_second_var)
- scubajerry
- Scratcher
1000+ posts
Script ends
What is your question? What is is suppose to do?
There is no loops in your code, so no matter what you have, it will only do it once.
There is no loops in your code, so no matter what you have, it will only do it once.
- AonymousGuy
- Scratcher
1000+ posts
Script ends
Is that the full script? There isn't even another ask block in there if you answer “yes”……
If you want it too loop around to the beginning, you need to put it in some kind of loop.
If you want it too loop around to the beginning, you need to put it in some kind of loop.
- nerdcraft
- Scratcher
54 posts
Script ends
I changed the structure and it worked.
a_var="string data" a_second_var=123 if "boolean": print(a_var) else: print(a_second_var)
- Discussion Forums
- » Help with Scripts
- » Script ends