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?
Thanks
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?
Thanks
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.