Rotur
  • Getting Started
  • Your Connection
    • What is a websocket?
    • Connecting
      • Handshake
      • SetID
      • Link
    • Authentication
      • Get User Data
      • Login
    • Rotur Designations
    • Websocket Commands
      • Global Message (gmsg)
      • Private Message (pmsg)
      • Login to rotur (auth)
  • My Account
    • Rotur Account Objects
      • originOS specific keys
    • Requesting my ofsf storage
    • Rotur Badges
    • Transactions and Taxes
  • Assorted APIs
    • rMail
    • avatars.rotur.dev
      • .banners
    • rotur.dev/auth
    • Keys
  • languages
    • RWL
      • Basics
      • Structure
      • Attributes
        • Text
        • Frame
        • Section
      • Alignments and Anchors
    • RTR
      • Basics
      • Structure
      • Functions
        • Mathematical Functions
        • String Functions
        • Array Functions
        • Object Functions
        • Logical Functions
        • Utility Functions
      • Events
      • Examples
    • RDF
  • Claw
    • What is claw
    • Api Endpoints
      • /feed
      • /post
      • /follow
      • /unfollow
      • /followers
      • /following
      • /profile
      • /delete
      • /rate
      • /following_feed
      • /reply
      • /repost
      • /top_posts
      • /search_posts
      • /search_users
  • Web Standard
    • What is this
  • Addons / Extensions
    • Basic Structure
    • Events
      • onload
      • page_load
      • page_focus
    • API
      • Classes
        • Page
          • (static) .new()
          • .getTitle()
        • URL
          • (static) .new()
          • (static) .parse()
          • .format()
          • .getAsyncData()
          • .getFetchUrl()
          • .getTitle()
    • Commands
      • redirect
      • opentab
    • Variables
      • tab_info
      • page_width / height
      • scroll_x / y
Powered by GitBook
On this page
  • Categories
  • Usage
  • Best Practices
Edit on GitHub
  1. languages
  2. RTR

Functions

PreviousStructureNextMathematical Functions

Last updated 25 days ago

This section provides detailed documentation for all built-in functions in RTR.

Categories

    • min, max, abs, round, floor, ceil, sqrt

    • join, split, chr, ord, length

    • length, item, range

    • keys, values, has, obj

    • all, any, not

    • log, return, error

Usage

Each function is documented with:

  • A description of what the function does

  • Example usage with expected output

  • Common use cases and patterns

Best Practices

  1. Use built-in functions when available instead of implementing your own

  2. Check function return values for error conditions

  3. Use appropriate functions for the data type you're working with

  4. Consider performance implications when using functions in loops

  5. Use descriptive variable names when storing function results

Mathematical Functions
String Functions
Array Functions
Object Functions
Logical Functions
Utility Functions