note: You need to include the open and close parentheses when you call a function, even when you're not passing an argument to it.
with no argument: visited()
with an argument: visited("Library")
The visited() function returns the number of times (a) specific passage(s) has/have been visited, the integer value returned will be between zero and the largest integer supported by the web-browser.
If no argument is passed to the function then it will default to the number of times the current passage has been visited, in which case the returned integer will be between one and the largest integer. Because of this fact the following example will always show "Welcome back".
<<if visited()>>Welcome back.<<else>>Welcome newcomer.<</if>>
If you want use the visited() function to determine if this is the first time that the Reader has visited the current passage then you will need to check the interger returned by the function. The following shows one way to do this.
<<if visited() is 1>>Welcome newcomer.<<else>>Welcome back.<</if>>