• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "Stop"
    Differences between revisions 3 and 4
    Revision 3 as of 2013-08-07 17:57:01
    Size: 942
    Editor: Inanna
    Comment:
    Revision 4 as of 2015-04-18 19:27:57
    Size: 1144
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 5: Line 5:
    Allows you to stop a script at that line, so further processing of lines will not take place. Functions exactly the same as [[End]]. Allows you to pause a script at that line, so you can manually resume it afterward.
    Prior to NeatBot version 3165T, the Stop command functioned exactly the same as [[End]] and would actually "stop" the script..
    Line 8: Line 9:
    ifgoto (10 > 11) stopTest // Example way to use Stop in a script
    ...
    ...
    if $error goto label stop
    echo "We have no errors and will continue."
    ...
    ...
    end

    label stop
    echo "We had an error. The script will now pause so you can review the error. Please manually resume after reviewing."
    Line 10: Line 21:

    label stopTest
    echo "This line will never show up because 10 is not greater than 11, and the 'stop' above will stop the script"
    ...
    ...

    Usage:

    stop

    Example:

    stop

    Allows you to pause a script at that line, so you can manually resume it afterward. Prior to NeatBot version 3165T, the Stop command functioned exactly the same as End and would actually "stop" the script..

    // Example way to use Stop in a script
    ...
    ...
    if $error goto label stop
    echo "We have no errors and will continue."
    ...
    ...
    end
    
    label stop
    echo "We had an error. The script will now pause so you can review the error. Please manually resume after reviewing."
    stop
    ...
    ...


    ScriptControlStructures

    Stop (last edited 2017-01-18 13:59:22 by Romulus)