It would return whatever the N that represents the channel in $chan(N) is. That doesn't include switchbar order AFAIK.