Skip to content
Ryzom Core Wiki edited this page Jul 8, 2024 · 4 revisions

title: Min description: published: true date: 2023-03-16T23:08:42.048Z tags: editor: markdown dateCreated: 2023-03-16T22:25:46.322Z

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.

Clone this wiki locally