Difference between revisions of "NXSL:AddrInRange"
Jump to navigation
Jump to search
(Created page with "__NOTOC__ Checks if given IP address is within given range (including both bounding addresses). == Syntax == AddrInRange(''address'', ''start'', ''end''); == Parameters =...") |
m (Text replacement - "^" to "{{deprecated}}") |
||
Line 1: | Line 1: | ||
__NOTOC__ | {{deprecated}}__NOTOC__ | ||
Checks if given IP address is within given range (including both bounding addresses). | Checks if given IP address is within given range (including both bounding addresses). | ||
Latest revision as of 16:13, 13 September 2022
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