12 Replies Latest reply on Jan 17, 2017 8:35 AM by JustOneBren

    Goto line or Restart Script Code

    JustOneBren Level 1

      Hello all,


      I have a script with nearly 600 lines and in a few places within the script there are alerts that tell the user the answers they have given would not work so the script then exits and they need to restart the script manually.

      My preference would be that the script automatically re-runs either from the start or from a specified line. Now, years ago on the 48k spectrum I would have wrote something like “goto line xx” and it would happily jump to that line and continue from there (showing my age ).

      I have tried using Functions but this over complicates things somewhat and wondered if anyone has a simple ‘goto line’ or ‘restart script’ code to replace the exit() code?


      Many Thanks for any help, Brendan