#endloop# must be last statement