spacer
   
   
Mailtraq - the Complete Email Server
   
spacer

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

spacer
spacer

While()

In a while loop the content is repeatedly evaluated until the continuation expression evaluates to false. Each time the content is evaluated, the result is appended to the function result. This is similar to the while do ... construct found in many languages.

result := While( continuation , content )

continuation
An expression evaluated just before each iteration which terminates the loop if "FALSE"
content
An expression which is evaluated each iteration with the result being appended to result
result
The concatenation of the results from each iteration
// Transfer the contents of the file input.txt to the file output.txt
a := OpenFile("input.txt");
b := CreateFile("output.txt");
While(Not(EOF(a)),
  Write(b, Read(a))
);
CloseFile(a);
CloseFile(b)
spacer


Download Trial
Buy now
Screenshots
Requirements
Feature Tree
FAQs
What's new
Print this page Print this Page
Mailtraq 2.12 PDF Datasheet
Send a friend an email about Mailtraq ShareMailtraq - Email Server at Delicious Mailtraq - Mail Server at digg Mailtraq - Mail Server at FacebookMailtraq - Email Server at stumbleupon Tweet about Mailtraq

 

 

   Copyright © 2003 - 2008 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.