By using a conditional statement: INPUT "Insert time", U_T$ IF TIME$==U_T$ THEN GOSUB @Label However, i fear you need a more precise comparison, but that's up to you.