LogoLogo
  • Welcome to the MOOST platform user manual
  • Platform Manual
    • Login
      • Forgot Password
    • Notifications
    • Rules
      • Rule Configurator
        • Data graph
        • Datasets
        • Condition
        • Streak
        • Message
        • Settings
        • Rule Simulator
        • Early Adopter
        • Command
      • Rule Language
        • Syntax
        • Data Types
        • Data Structures
        • Functions
          • AVG
          • COUNT
          • DISTINCT
          • EVAL
          • FILTER
          • GROUP_BY_DEVICE
          • GROUP_BY_TIME
          • MAX
          • MIN
          • POSITION
          • REVERSE
          • SORT
          • SUBSET
          • SUM
        • Operations
          • Plus
          • Minus
          • Multiply
          • Divide
          • Negate
          • Less Than
          • Less or Equal
          • Equal
          • Not Equal
          • Greater or Equal
          • Greater
          • AND
          • OR
          • NOT
          • Format
          • Attribute Accessor
        • Examples
    • Events
    • Buildings
      • Household Profile
    • User Profile
    • Billing Portal
      • Payment Method
      • Update Payment Address
      • Invoices
      • Terminate Subscription
    • Context Services
      • Weather Forecast
      • Solar Production Forecast
      • Power Consumption Forecast
      • Power Generation Forecast
    • Support Center
  • Technical Integration
    • Cloud-to-Cloud Integration
      • Platform On-boarding
      • Configure Notification Settings
        • Receive Notifications
          • iOS Notification Handling
      • MOOST API Integration
        • Request Access Token
        • Synchronize Buildings and Devices
          • Device Types
        • Forward Events
          • Event Types
            • Device Status
            • Charging Modes
            • Switch State
        • Notifications and Interactions
          • Return Notification Interaction
  • Best Practices
    • FAQ
    • User Acceptance Testing
  • Policies
    • Security Policy
    • Privacy Policy
Powered by GitBook

© 2025 MOOST AG

On this page
  • Description
  • REVERSE(Scalar<any>)
  • REVERSE(Vector<any>)
  • REVERSE(GroupedScalar<any, any>)
  • REVERSE(GroupedVector<any, any>)
  • Examples
Export as PDF
  1. Platform Manual
  2. Rules
  3. Rule Language
  4. Functions

REVERSE

Description

Reverses the entries. So if applying on ascending ordered data, you would get a descending ordered data set.

REVERSE(Scalar<any>)

REVERSE(scalar: Scalar<any>): Scalar<any>

Reverse the order of the given Scalar<any>

Parameters

Parameter
Description

scalar

A scalar of type any

Returns

Returns the given scalar in reversed order with type Scalar<any>

REVERSE(Vector<any>)

REVERSE(vector: Vector<any>): Vector<any>

Reverse the order of the elements in the given Vector<any>

Parameters

Parameter
Description

vector

A vector of type any

Returns

Returns the given vector in reversed order with type Vector<any>


REVERSE(GroupedScalar<any, any>)

REVERSE(group: GroupedScalar<any,any>): GroupedScalar<any,any>

Reverse the order of the elements in the given GroupedScalar<any, any>

Parameters

Parameter
Description

group

A GroupedScalar of type <any, any>

Returns

Returns the given group in reversed order with type GroupedScalar<any, any>.


REVERSE(GroupedVector<any, any>)

REVERSE(group: GroupedVector<any,any>): GroupedVector<any,any>

Reverse the order of the elements in the given GroupedVector<any, any>

Parameters

Parameter
Description

group

A GroupedVector of type <any, any>

Returns

Returns the given group in reversed order with type GroupedVector<any, any>.

Examples

Reverse the elements in the GridPowerConsumption Vector.

REVERSE($GridPowerConsumption)
PreviousPOSITIONNextSORT

Last updated 1 year ago