Call as
UI.condition_inputs.finite(value)
Record the dependency UI.condition_inputs.finite, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.
What it does
True when value is a number that is neither NaN nor infinite; the condition inputs use it to validate entered and slider values.
Arguments
| Name | Type | What it does |
|---|---|---|
value | any | Value to check. |
Returns
| 1 | boolean | True when the value passes the check. |
|---|
Editions
Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.
It reads no game API directly.
How the addon calls it
UI.condition_inputs.constructorif not finite(value) then return tostring(value) end
Source
UI/condition_inputs.lua, line 14. Read only in game; Duplicate makes an editable copy.
UI.condition_inputs.finite(value)
return type(value)=='number' and value==value and value>-math.huge and value<math.huge