Re: [PHP] IF this then, move to this line...

2001-04-05 Thread Steve Werby
"Brandon Orther" <[EMAIL PROTECTED]> wrote: > Is there a way to make my script jump to a certain line in my code if a > certain variable is true. like use an if then statement to check for a > certain value, then if it is true jump back to line 34 (Any line really). Ahh, the good old days of GOT

RE: [PHP] IF this then, move to this line...

2001-04-05 Thread Brandon Orther
Yeah, Memories... of Basic... Ok thanxs for the info :) brandon -Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 10:51 AM To: Brandon Orther; PHP User Group Subject: Re: [PHP] IF this then, move to this line... "Brandon Orther&quo

Re: [PHP] IF this then, move to this line...

2001-04-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Brandon Orther) wrote: > Is there a way to make my script jump to a certain line in my code if a > certain variable is true. like use an if then statement to check for a > certain value, then if it is true jump back to line 34 (Any line r

Re: [PHP] IF this then, move to this line...

2001-04-05 Thread Wade DeWerff
this is mostly a C++ function, java has something similar as well but break would be the closest -Original Message- From: CC Zona <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Thursday, April 05, 2001 1:03 PM Subject: Re: [PHP] IF this then, move

RE: [PHP] IF this then, move to this line...

2001-04-06 Thread Stewart Taylor
You could use continue to skip to the start of a loop. e.g. while (1) { start of code you want to jump back too . . . if (so and so is true) continue; . . . . break; // exit loop } Unlike c php does not have a goto command. However what you describe does not sound