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
The min native AI script function returns the lowest of two values.
(min_value: f)min(value1: f, value2: f) // min_ff_f
- value1 (float): A value to compare.
- value2 (float): A value to compare.
- min_value (float): The minimum value of the two parameters.
(shortest)min(left, right)
This example code compares the left
and right
parameters and returns the shortest of the two.