PCE version 4C man_modulenamespaceid_tablemodified current_idOIxN class/whileN referenceC hash_tablerefersizeOIxaIsNC.whileCman_class_card identifiermodule last_modifiednamesummary descriptionsee_alsoinherituser_interfacebugsOIxNC.whileRICdateOIx,ƒhzNwhilenCstringOIx‹An instance of class while executes it's body until it's condition fails, similar to the Pascal or C while statement. While loops are rarely used in PCE. Most loops in PCE entails enumerating the elements of a collection. For this purpose the methods `chain ->for_all', `vector ->for_all', etc. are more appropriate. The following two examples both print all elements of Chain to the standard output: new(N, number(0)), get(Chain, size, Max), send(while(N < Max, and(message(@pce, format, '%N\n', ?(Chain, nth0, N)), message(N, plus, 1))), forward) Or send(Chain, for_all, message(@pce, format, '%N\n', @arg1))CchainsizeOIxIeN $topics$122XnnnXuCnumberOIxx