FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

How to use Mod (%) operator in blueimp javascript template · Issue #30 · blueimp/JavaScript-Templates · GitHub

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

Description

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


    Back | FazBrowse Home | New Git URL