Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

What am I missing??

  • This topic has 1 reply, 2 voices, and was last updated 2 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5451
    Avatar photopublii-slpa

    Here is the code I have

    {{#setVar "arrayCount" this.items.length}}

    intended to set a variable using the helper

    setVar: function(nName, vValue, options) {
        if (! {
   = {};
  [nName] = vValue;

    and then comparing this value

    {{#checkIf {{math {{@root.arrayCount}} '-' 1}} '==' @index}}

    I get the error

    Rendering process failed
    An error occurred during rendering process:

    Unexpected token ‘;’

    I have been round and round on this – what am I doing wrong?


    Avatar photoTomasz Dziuda


    I do not see error in your code – maybe the issue is caused by different fragment?

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.