For "." left-hand operand: Expected a hash, but th...
# advancedpdf
b
For "." left-hand operand: Expected a hash, but this has evaluated to a string (wrapper: f.t.SimpleScalar): ==> totalRate?string [in template "template" at line 167, column 72] is the error I'm getting - any suggestions? Thanks!
m
Copy code
<#if item.quantity gt 0>
  <#assign totalRate = item.amount / item.quantity>
<#else>
  <#assign totalRate = 1>
</#if>
Try assigning like this instead
b
Perfect @michoel Thanks!