Lua:Sign

Lua:Sign

From BeamNG

Revision as of 22:47, 22 January 2015 by Nug700 (talk | contribs) (initial.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns 1 if the value of 'n' is greater than 0, -1 it it's lower than 0, and 0 if the value is 0.

File location: lua\utils.lua:58

Syntax

number sign (number n)