NXSL:AddrInRange

From NetXMS Wiki
Jump to navigation Jump to search
This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Checks if given IP address is within given range (including both bounding addresses).


Syntax

AddrInRange(address, start, end);


Parameters

address IP address to check.
start Starting IP address of a range.
end Ending IP address of a range.

All IP addresses should be specified as strings.


Return Value

TRUE if address is within given range (including both bounding addresses), and FALSE otherwise.


Examples

AddrInRange("10.0.0.16", "10.0.0.2", "10.0.0.44")		->	TRUE
AddrInRange("10.0.0.16", "192.168.1.1", "192.168.1.100")	->	FALSE