DotOrColon() public static method

Return a dot (full stop) for zero or a colon for more than zero.
public static DotOrColon ( int n ) : string
n int
return string
        /// <summary>
        /// List all the loops retrieved
        /// from the given element.
        /// </summary>
        static void ListLoops(Element e, JtLoops loops)
        {
            int nLoops = loops.Count;

            Debug.Print("{0} has {1}{2}",
                        Util.ElementDescription(e),
                        Util.PluralString(nLoops, "loop"),
                        Util.DotOrColon(nLoops));

            int i = 0;

            foreach (JtLoop loop in loops)
            {
                Debug.Print("  {0}: {1}", i++,
                            loop.ToString());
            }
        }