This article covers it: https://chooseyourstory.com/help/articles/article.aspx?ArticleId=3850
If you want the altered dialogue to be in the links, you'll have to make them visible or not visible depending on the variable.