a guest Nov 9th, 2018 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- % do not move on until enter key is pressed
- while currkey~=1
- pause; % wait for a keypress
- if strcmp(currkey, 'return') % You also want to use strcmp here.
- currkey=1 % Error was here; the "==" should be "="
- currkey=0 % Error was here; the "==" should be "="
RAW Paste Data