Then write it in pseudo code and we'll help clear up the syntax, if that's the problem.