PDA

View Full Version : Hello


Mariciuc223
01/08/2015, 11:46 AM
Hello, how work "break" ?

It's like a return ? (I need to know because i have a ZCMD command , and if i return in that loop , it stops ...)

I said there i have a command in ZCMD and give me Unknown Command ...

Inn0cent
01/08/2015, 11:48 AM
Show the command or try adding return 1; at the end of your command.

Mariciuc223
01/08/2015, 11:53 AM
Lol , the whole command it's a loop dude, i know need a return , but if the function will goes with the loop ? I return in loop ... ? I need to know how that break works ...

CodeStyle175
01/08/2015, 11:56 AM
break will just stop the loop

new value;
for(new i; i < 100; i++){
if(i==51){
value=i;
break;
}
}
printf("%d",value);

Inn0cent
01/08/2015, 11:57 AM
EDIT: Nvm.

Mariciuc223
01/08/2015, 12:01 PM
Thanks but i done it myself ... And it works , there it's no Unknown Command :)