min - ryzom/ryzomcore GitHub Wiki


title: Min description: published: true date: 2023-03-12T12:45:09.817Z tags: editor: markdown dateCreated: 2023-03-12T11:34:39.482Z

min

The min native AI script function returns the lowest of two values.

Syntax

(min_value: f)min(value1: f, value2: f) // min_ff_f

Arguments

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

Return value

  • min_value (float): The minimum value of the two parameters.

Example

(shortest)min(left, right) 

This example code compares the left and right parameters and returns the shortest of the two.

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