#1

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 ...
Reply
#2

Show the command or try adding return 1; at the end of your command.
Reply
#3

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 ...
Reply
#4

break will just stop the loop
PHP код:
new value;
for(new 
i100i++){
     if(
i==51){
          
value=i;
          break;
     }
}
printf("%d",value); 
Reply
#5

EDIT: Nvm.
Reply
#6

Thanks but i done it myself ... And it works , there it's no Unknown Command
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)