Configurable table of contents entry

Is there a way to have an entry in the table of contents configurable at run time? For example, I may have a wiki that has a toc entry called ‘development’ that I only want visible in certain situations and hidden when in public use. So the table of contents tag