Board Thread:General Discussion/@comment-24046021-20131013094723/@comment-23122261-20131013122711

Well if i make an alarm clock i could make the alarm a variable but if you want to save it this should be the code :

ALARM$ means the alarm the user indicated

LOAD "MEM:ALARM",FALSE

IF MEM$=="" THEN GOTO @INPUT ELSE GOTO @ALARMCLOCK

@INPUT

INPUT "When you want to wake up?" ;ALARM$

MEM$=ALARM$

SAVE"MEM:ALARM"

PRINT"Alarm saved, starting clock..."

wait 180

LOAD"MEM:ALARM",FALSE

GOTO @ALARMCLOCK

@ALARMCLOCK

LOCATE 1,2

PRINT TIME$

IF MEM$==TIME$ THEN @ALERTUSER

WAIT 10

GOTO @ALARMCLOCK

@ALERTUSER

This part is all yours, is when the user is alerted but at the end add GOTO  @ALARMCLOCK