arrayMin(array array) → any element
Returns the smallest element of the array. Values are ranked as follows: null x < m ? x : m)` instead.
In Python, min() raises a ValueError on an empty list, where arrayMin returns null: pass default to get that behavior, min(a, default=None). The comparison is Python's, not LeekScript's ordering: a list mixing numbers and strings raises a TypeError instead of ordering them. min also accepts a key, min(a, key=lambda e: e.life), and then returns the element, not the value of the key.
var array = [16, 10, 15.5, 16, 18, 13]
debug("min = " + arrayMin(array)) // Displays 10
const array = [16, 10, 15.5, 16, 18, 13]
Debug.log("min = " + Math.min(...array)) // Displays 10
array = [16, 10, 15.5, 16, 18, 13]
Debug.log(f"min = {min(array)}") # Displays 10
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.