ForEach OK, Loop Lines almost OK, IF Lines not OK