sentences:  The most important structures are described below.AppleScript offers two kinds of conditionals.-- Simple conditional
  if x < 1000 then set x to x + 1
  
  -- Compound conditional
  if x is greater than 3 then
  else
  end if
  
  The repeat loop of AppleScript comes in several slightly different flavors.