HTPL Compiler
  • HTPL Compiler
  • Introduction
  • Github repository
  • What is HTPL and why it exists
  • Getting started
  • Syntax
    • Variable declaration
    • Returning values
    • Operations between values
    • Value assignment
    • If then else branches
    • Comparison and logical operators
    • Function declaration and invocation
    • While loop
    • Inputs and outputs
    • Comments
  • Other
    • HTPLCompiler interface - Browser
    • Error handling
Powered by GitBook
On this page

Was this helpful?

  1. Syntax

Returning values

The <p> element is used to return string values, integer values or variable values. This code:

<p>A string value</p>
<p id="10"></p>
<p id="varname"></p>

is compiled as

'A string value'
10
varname

Please note that a string value will be returned only if no id is specified. For example:

<p id="foo">A string value</p>

will return

foo
PreviousVariable declarationNextOperations between values

Last updated 4 years ago

Was this helpful?