max - ryzom/ryzomcore GitHub Wiki


title: Max description: published: true date: 2023-03-12T12:44:49.625Z tags: editor: markdown dateCreated: 2023-03-12T11:36:03.575Z

max

The max native AI script function returns the highest of two values.

Syntax

(max_value: f)max(value1: f, value2: f) // max_ff_f

Arguments

  • value1 (float): A value to compare.
  • value2 (float): A value to compare.

Return value

  • max_value (float): The maximum value.

Example

(longest)max(left, right)

This example code returns the longest of two values, left and right.

⚠️ **GitHub.com Fallback** ⚠️