Code:
/testing {
  for $scriptline aliases.txt lol = 3; $+(%,lol) < 5 ;inc $+(%,lol)
  say hi 
  :FOREND
}  

also, could you post here your aliases.txt and any other text file this is to use.