while Loop
From NWN Lexicon
Revision as of 21:56, 15 December 2017 by 213.64.109.232 (talk) (Spam removal - Undo revision 52645 by 209.160.126.132 (talk))
The while loop tests an expression and executes statements repeatedly as long as the expression is TRUE. If the expression evaluates to FALSE at the beginning of the while loop's execution then the statements are skipped over entirely.
// prototype
// while (expression) { statement; }
// while (expression) { statement; }
Example
author: Ryan Hunt, editors: Charles Feduke, Mistress, contributor: Ken Cotterill