dbnetsoft
RemoteRedirect
RemoteRedirect
  • General
    • Release Notes
    • Wording
    • Hardware
      • Teltonika TRB142/RUT956
        • Configuration
        • Wiring/Pinout
      • Teltonika TRB142
  • Configuration
    • Operating Modes
      • Pass Through
      • Timing
      • Display
  • Operation
    • Live
  • Scripting
    • Types
    • Functions
    • Variables
    • Examples
      • ALGE-Timing D-Line/GAZ
      • FDS MLED
      • Microgate Microtab
  • App
    • Prerequisites
    • Installation
    • Usage
      • Home
      • Display
Powered by GitBook
On this page

Scripting

This page describes the syntax and possibilities with scripting.

PreviousLiveNextTypes

Last updated 1 year ago

Scripting is based on the powerful . You can find more information here:

  • Language Overview:

  • Built-in Functions:

Different than stated in the scriban docs, Race Result Exchange is not changing the casing of variables or functions. Even more, you can use string.ends_withor string.EndsWith, whereas the later is preferred as it means the declaration of the method is not touched.

The following script will output "Hello World":

{{ "Hello World" }}

The following script will take the current time and pads it to 12 characters and center aligns it if need be. This is possible by using the | pipe character: The expression to the left is forwarded to a function that is given by the name after the pipe. The forwarded argument will be the first in the function arguments list:

{{ Clock | TrimPad 12 "Center" }}

Without using piping, you can also use a traditional way of calling methods:

{{ TrimPad Clock  12 "Center" }}
Scriban scripting language
Here
Here