N        This condition can be used to check if a channel exists on the server or not.

It takes one parameter, which is the ID of the channel to find (0 to 65534, inclusive).


This condition will only create an error if you pass an invalid channel ID  (-1 or less, 65535 or more). In other scenarios, such as the server not hosting, it will simply return false.


IDs are assigned on channel create, on a lowest available basis, and never changed; so if three channels are created, and the second channel is destroyed, there will be 2 channels but with IDs 0 and 2, not 0 and 1.

A channel can still exist with no clients on it, if it is manually created by the Channel > Create channel with master selected by name / by ID actions, but "" or -1 is passed for the master name/ID.


For a performance boost, you should prefer using IDs over names, for reasons discussed in the Tips topic.


In a Channel > On channel close event, the closing channel is considered to exist by this condition.

This condition does not change the currently selected channel.