Javascript and 'goto' option

Hi there,

I have written a javascript-function to update some values in some arrays and do some other checks and stuff.

Now, in some cases I have to execute some part of the code multiple times.

With Lotusscript I would simply set a label “PerformHere:” and then use “goto PerformHere”…

Can this also be done in a Javascript-function??

I hope someone can help me out with this one…

Greetz Renz

Subject: Use a function

Create a function. Then call the function whenever you need it. You can create functions in the JS Header and call them from anywhere.

Subject: RE: Use a function

Hi Lawrence,

Yeah, i know that’s an option… but to create an extra function when there is an option to jump back in the code, i prefer the last one.

The cases when i need to jump back is reduced to one.

Thnx!