IpTocidr()

Returns the CIDR version of this IP range

Usage

STRING = IpTocidr( ip, mask )
Argument Summary
ip ip - the IP address. If in a simple notation (10.0.0.1) then netmask must be present, otherwise CIDR notation (10.0.0.1/24)
mask mask - if the IP address is not in CIDR notation, this is the netmask (for example 255.255.255.0) [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

IpTocidr(
   ip=?, 
   mask=?
);

Supports passing parameters as a structure using ArgumentCollection:

IpTocidr( ArgumentCollection={
   ip : ?, 
   mask : ?
} );