<%- if( exist('Period','var') == 1 ) %>
    <%- if ( (Period < max(InputExtents)) || (min(InputExtents) < 0 ) ) %>
            x = mod( x, <% Period %> );
    <%- end %>
<%- end %>
