LiveCode Coding Challenge

I will periodically post coding challenges to be solved with LiveCode.
Solving problems is a great way to improve your coding skills.
Vote for the best answer.

please paste plain text only.

please add

 at the beginning of your code, and 
at the end to facilitate syntax colorizing.

if you see that ‘AndyP edited….’ your answer, this will be only for formatting.. I will not be changing your answer.

Question and answer is powered by AnsPress.io