Re: [nodejs] What's wrong with this simple code !

2013-11-30 Thread Scott González
There's nothing for you to break out of. Why did you add that line to your code? On Sat, Nov 30, 2013 at 10:32 AM, Ashutosh Das areos...@gmail.com wrote: *var a = 5 , b = 6 ;if(a == b){console.log(Ad);}else{break; console.log(AsdASD);}* It simply returns *break;

Re: [nodejs] What's wrong with this simple code !

2013-11-30 Thread Jose Luis Rivas
Where's a loop there to use break? Btw non sense to write console.log after trying to stop an if. Use return. On Nov 30, 2013 7:32 AM, Ashutosh Das areos...@gmail.com wrote: *var a = 5 , b = 6 ;if(a == b){console.log(Ad);}else{break; console.log(AsdASD);}* It simply returns

Re: [nodejs] What's wrong with this simple code !

2013-11-30 Thread Jose Luis Rivas
That's not a loop is a conditional On Nov 30, 2013 7:59 AM, Ashutosh Das areos...@gmail.com wrote: I just want to skip rest of the loop . On Sat, Nov 30, 2013 at 9:38 PM, Jose Luis Rivas ghostba...@gmail.comwrote: Where's a loop there to use break? Btw non sense to write console.log after

Re: [nodejs] What's wrong with this simple code !

2013-11-30 Thread Ashutosh Das
Thanks for the correction .. silly mistake :/ On Sat, Nov 30, 2013 at 10:04 PM, Jose Luis Rivas ghostba...@gmail.comwrote: That's not a loop is a conditional On Nov 30, 2013 7:59 AM, Ashutosh Das areos...@gmail.com wrote: I just want to skip rest of the loop . On Sat, Nov 30, 2013 at