Sambar Server Documentation
|
CScript While Loops |
while ( expression ) statementBecause the expression is tested before the statement is executed, the statement part can be executed zero times. The following example returns the length of a string.
string_length(string) { int i = 0; if (string != NULL) { while (string[i] != '\0') i++; } return(i); }
© 2001 Sambar Technologies. All rights reserved. Terms of Use.