Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
This repository was archived by the owner on Sep 25, 2021. It is now read-only.

How to use Mod (%) operator in blueimp javascript template #30

@lekhnath

Description

@lekhnath

I wanted to use an expression that contains Mod (%) operator but the template generates an error saying : "SyntaxError: illegal character". How can I get rid of it.

My code is something like below:

{%
for( var i = 0, venue; venue = o[i] ; i++){

if( ! (i % 2) ) {
// do something with 'venue'
}

}
%}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions