I'm looking for modulus operator in their docs but I can't find it so I though I would ask here. I have a loop written in AMPscript and I need to insert a piece of html every X item. Is there a modulus operator in AMPscript?



The Mod function is documented in the Utilities AMPscript Functions page, so it takes a moment to find. Like most Mod functions, it takes the dividend and the divisor as the two parameters and returns the remainder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.