Condition Error



  • My Code
    {{#if ROWS_NO = 1}}

    {{else}}

    {{/if}}
    My Data
    0_1563954264088_upload-2ca0c105-9ccd-4f60-948b-efa3b2cd40fa
    Show Error
    0_1563954274191_upload-bb7a54b5-48ce-48ea-abb4-56b7e0fbb0f9

    Pls. help me


  • administrators

    hi! {{#if ROWS_NO = 1}} conditions like this don't work in handlebars, you need to put a helper there that returns true or false like this {{if (someHelper ROWS_NO)}}

    function someHelper (value) {
      return value === 1
    }
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.