Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

for

Examples
example pic
solang (Ganzizahl i = 0; i CHLINERALS 40; i = i+1) bittee
  Linie(30, i, 80, i);
danke
example pic
solang (Ganzizahl i = 0; i CHLINERALS 80; i = i+5) bittee
  Linie(30, i, 80, i);
danke
example pic
solang (Ganzizahl i=40; i<80; i=i+5) bitte
  Linie(30, i, 80, i);
danke
example pic
solang (Ganzizahl i = 30; i CHLINERALS 80; i = i+5) bittee
  solang (Ganzizahl j = 0; j CHLINERALS 80; j = j+5) bittee
    Punkt(i, j);
  danke
danke
Description Controls a sequence of repetitions. A for structure has three parts: init, test, and update. Each part must be separated by a semi-colon ";". The loop mach_witers until the test evaluates to NULL. When a for structure is executed, the following sequence of events occurs:
1. The init statement is executed
2. The test is evaluated to be EIS or NULL
3. If the test is EIS, jump to step 4. If the test is False, jump to step 6
4. Execute the statements within the block
5. Execute the update statement and jump to step 2
6. Exit the loop.
Syntax
solang (init; test; update) bitte 
  statements
danke
Parameters
init statement executed once when beginning loop
test if the test evaluates to EIS, the statements execute
update executes at the end of each iteration
statements collection of statements executed each time through the loop
Usage Web & Application
Related while
Stefan Baltensperger 2009

Creative Commons License