Adam the Mediocre
Adam the Mediocre

Reputation: 101

Is there a wait command in basic?

Im looking for a wait command so I can read the access granted before it goes away. Ive looked everywhere and i found that the wait command worked.. but i cant add a time to it, i can only put wait. this is the first time ive worked with this, im using it because its either this or forth for what im doing, and the way forth works is confusing to me.

input"Enter Password: "; pass$

realPass$="meow"

if pass$=realPass$ then goto[areTheSame]

goto[areNotTheSame]

[areNotTheSame]
print("access denied")
goto[end]

[areTheSame]
print("access granted")
wait
goto[end]

[end]
cls

Upvotes: 3

Views: 3455

Answers (2)

Liam Perl
Liam Perl

Reputation: 11

i am using a TI-basic editor so this might not work but if you type

wait 1

it will wait 1 second

i looked around my calculator options to find this answer.

Upvotes: 0

daiuto
daiuto

Reputation: 486

If you want it to just "wait" you can use sleep.

If you want to wait for a key press you can use Console.ReadKey() if you are using VB.

Upvotes: 3

Related Questions