User Portlet User Portlet

Discussions
I have the following Wolfram Code Language that helps me to identify an integer. But, I would like to get the message of "NOT AN INTEGER" when the result is false. How can I insert the If...Then...Else function into the following code: ...
Can somebody help me on finalizing my loop structure? I am looking for a loop that will BREAK when I get an integer results and print that result I tried that one but it does not work Can you improve it? ...