for do
if then
  
Algorithm 5