Modulo Operator


Codesly - David Dexter

3rd Party (Free)

EE Version Support

  • ExpressionEngine 1.x


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



This plugin calculates the modulo value. In computing, the modulo operation finds the remainder of division of one number by another.

Given two numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder, on division of a by n. For instance, the expression “7 mod 3” would evaluate to 1, while “9 mod 3” would evaluate to 0. Although typically performed with a and n both being integers, many computing systems allow other types of numeric operands.


1) Dividend (required)
2) Divisor (required)

{exp:modulo dividend="dividend" divisor="divisor"}

For example:

bc. {exp:modulo dividend=“3” divisor=“3”} => 0
{exp:modulo dividend=“4” divisor=“3”} => 1
{exp:modulo dividend=“5” divisor=“3”} => 2
{exp:modulo dividend=“6” divisor=“3”} => 0

Modulo Operator Links

This entry was created October 16, 2009, 12:42 pm.
This entry was last updated August 8, 2011, 9:57 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

1 Review:

ejaeDesign 06.06.11

Rating - {addon_rating_average}

If you need to output a class or content per every x entry, this is a perfect way to do so without enabling PHP for the template.

Although it’s marked as a EE 1 plugin, it works perfectly with EE 2.1.3!