How to compute the GCF in gamesalad

Hi, I was wondering if anyone had a good idea on how to compute the greatest common factor between two numbers in gamesalad. I love it if there it was just as simple as typing a formula into the change attribute function, but the only was I know how to do it in another language is with a recursive method
Any help would be greatly appreciated

Answers