PDF Generator API
Go to website
Back
Articles on:Expression language
The expression language allows writing a mathematical and logical expression to manipulate the value displayed by component.

Categories

  • Components
  • Expression language
  • Q&A
  • Integrations
  • Release notes
  • What is Expression Language?
    Expression language in PDF Generator API is a specific programming language that allows writing mathematical and logical expression to manipulate the value displayed by component. Expression language can be written into the "Text" component "Raw value" under the "Formatting" view. Example expression {% 2 + {dataFieldName} + {dataFieldName2}*0.5 %}Very popular
  • Supported operators
    Arithmetic Operators + (Addition) {% 2 + 3 %} >> 5 - (Subtraction) {% 7 – 4 %} >> 3 * (Multiplication) {% 2 * 3 %} >> 6 / (Division) {% 9 / 3 %} >> 3 % (Modulus) {% 10 % 3 %} >> 1 ** (Pow) {% 5 ** 2 %} >> 25 Bitwise Operators & (And) {% 5 & 3 %} >> 1 | (Or) {% 5 | 3 %} >> 7 ^ (Xor) {% 5 ^ 3 %} >> 6Very popular
  • Functions
    Uppercase To display data field value in uppercase, use following expression. {% uppercase({dataFieldName}) %} Lowercase To display data field value in lowercase, use following expression. {% lowercase({dataFieldName}) %} Capitalize Uppercase the first character of each word in a string. {% capitalize({dataFieldName}) %} Round Round the float number based on the precision from the second parameter.Very popular

Not finding what you are looking for?

Chat with us or send us an email.

  • Chat with us
  • Send us an email

© 2021 PDF Generator API