Skip to main content

Information expression

An information expression only reads the PlayerView passed in. Raw numbers, strings and booleans can be used directly as constants; operand objects must have a type. See Player information.

TypePurpose
saturn:constantReturns the fixed value in the definition.
saturn:getterReads the result of a parameterized getter from the PlayerView passed in.
saturn:localReads the local binding of the current list or table element.
saturn:numberConverts an expression result into an information row number.
saturn:textDisplays text, a translation component or existing formatted text.
saturn:booleanConverts an expression result into a boolean display value.
saturn:itemsConverts an expression result into an item collection display.
saturn:meterGenerates a meter display from the current value, minimum and maximum.
saturn:translateGenerates a text component that keeps the translation key and arguments.
saturn:registry_nameResolves the display name from a registry ID and an entry ID.
saturn:formatGenerates text from a format string and arguments.
saturn:arithmeticPerforms numeric arithmetic on two expressions.
saturn:compareCompares two expressions and returns a boolean result.
saturn:logicPerforms logical operations on boolean expressions.
saturn:is_knownChecks whether an expression has a known value.
saturn:ifSelects the then or else expression according to the condition.
saturn:coalesceTakes the first available expression result in order.
saturn:listIterates the input collection and generates a display value for each element.
saturn:tableIterates the input collection and generates a table from the column definitions.