0 votes
by (120 points)
So let's say I have a link called link_0 and when I click on it for the first time, it takes me to the passage_1, but when somehow I click again link_0 I want it to take me to passage_2. Thanks in advance.

2 Answers

0 votes
by (300 points)
hello

 

I would say something like this

<<if condition_1>>

[[passage_1<-link0]]

<<else>>

[[passage_2<-link0]]

<</if>>

 

you just need to get the right condition :)
0 votes
by (159k points)

The answer supplied by @Maga is correct, you can use an <<if>> macro to control which of the two passages is visited. The following is a more detailed break down if one way to implement their solution.

You can use the hasVisited() function to determine if the Reader has already visited Passage 1 and then use that information to show the correct link.

<<if hasVisited("passage_1")>>
	[[link0|passage_2]]
<<else>>
	[[link0|passage_1]]
<</if>>

warning: It is not a good idea to use punctuation characters (like underscore, quotes, comas, etc...) in a Passage Name, because they can have special meaning in a web-based application and can lead to unexpected results.

...