break function

Results 1 to 3 of 3

Thread: break function

  1. #1
    Patrik Guest

    Default break function

    Greetings!<BR>A quick question.<BR>How do i break out of a JS funktion ??<BR><BR>Would be greatefull 4 help :)<BR>TNX!

  2. #2
    Richard A. Lowe Guest

    Default RE: break function

    return *expression*<BR><BR>Where *expression* is the value you want to return. Nothing else in the function then executes.<BR><BR>ie.:<BR>return true;<BR>return x+y;<BR>return new String();<BR><BR>Richard

  3. #3
    Patrik Guest

    Default RE: break function

    Ah ! So I could use return as a exit kind of thing.<BR>Great !!!<BR>Thanx a lot :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts