This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Rotekoppen's profile picture

I cant get this to work...

Started by Rotekoppen, 06 July 2016 - 10:37 AM
Rotekoppen #1
Posted 06 July 2016 - 12:37 PM
I`ve got problems with a if
its like a password but the output is always false
Help me!

script -> pastebin get 1Cnh3Z0i

Thanks!
Bomb Bloke #2
Posted 06 July 2016 - 01:02 PM
Currently, if you type "1.aaap" it prints "dad", otherwise it prints "1.aaap".

You haven't explained how this differs from what you want to happen.
The Crazy Phoenix #3
Posted 06 July 2016 - 03:59 PM
Either you're not entering the correct value or you haven't given us all your code (you may have overwritten read).

Note: There's no point in adding fake delays using sleep.
Rotekoppen #4
Posted 06 July 2016 - 09:57 PM
Currently, if you type "1.aaap" it prints "dad", otherwise it prints "1.aaap".

You haven't explained how this differs from what you want to happen.
I wanted when i type ver it display 1.aaap
and when typing something other it go dad

Either you're not entering the correct value or you haven't given us all your code (you may have overwritten read).

Note: There's no point in adding fake delays using sleep.

The sleep is for seeing whats happening

I See My problem…

I dint put " " on the ver in: if CMDIN == ver
Thanks for the help btw!
Edited on 06 July 2016 - 10:46 PM