Infinite Loop For Simple Function

(topic deleted by author)