This function returns whether a given variable is infinity (an infinite number) or not, returning true if it is, and false if it is not.
is_infinity(n);
| Argument | Description |
|---|---|
| n | The argument to check. |
Boolean
if is_infinity(global.value)
{
show_debug_message("Value is infinite!");
}
The above code checks the global variable "value" to see if it is infinite or not and shows a debug message if it is.