commandWhile function

void commandWhile(
  1. List args
)

Function of while command

Implementation

void commandWhile(List args) {
  bool exp = expEval(args[0]);
  if (exp) {
    final block = defineBlockEnd(cur);
    while (exp) {
      runBlock(block[0], block[1], block[3]);
      exp = expEval(args[0]);
    }
  }
}