Whatever programming language you use, the following 3 elements are essential.
x = 1 ;
x = x + 2 ;
rollInMySweetBabysArms = 2 ; SCREAMER100 = 0 ; buZZ_bEE = 4 ;
popSize = 100 ; ocRate = 0.3 ;
if (popSize < 1000) popSize = popSize + 1;
When a certain condition is met, execute a block of code.
popSize = 1 ; while (popSize < 10) { popSize = popSize + 1; }
It will keep repeating the sequence of events as long as a specific condition is satisfied.