This command will return a one if the specified animation is looping, otherwise zero will be returned.

Syntax: 
Return Integer=ANIMATION LOOPING(Animation Number)