I don't think you can generate a link by a script command, though you can certainly change a link's text and details using scripts. I suspect you have to make the link on each page, and have it visible only if the variable is what you want. If there is a way to script the actual creation of a link, then it is possible, but no-one's mentioned that ability to me yet. If it's possible, then I want to know how to do it too - it would be a really handy feature.