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

Operations between values

The <b> element is used to execute operations between two values. The operation is defined by its id, for example:

<b id="+">
    <p id="10"></p>
    <p id="foo"></p>
</b>
<b id="*">
    <p id="10"></p>
    <p id="foo"></p>
</b>

is compiled as

10 + foo
10 * foo
PreviousReturning valuesNextValue assignment

Last updated 4 years ago

Was this helpful?