I don't know if it would work with your game, but one way to do this would be to make two passages for the two variants, and then send the player to one or the other depending on whether they've seen the first one before.
@set score=100
Current score is {score}.
[[Start.]](Look)
[[Look]]:
[[Look at the Moon.]]({if seen Moon-Variation-1:Moon-Variation-2}{else:Moon-Variation-1})
[[Moon-Variation-1]]:
@dec score 20
The first version of the passage. Current score is {score}.
Go back to [[Look]].
[[Moon-Variation-2]]:
The second version of the passage. Current score is {score}.
Go back to [[Look]].
I think you can also use JavaScript to make things conditional. This code is from Alex (I don't know JavaScript).
[Set flag] or, don't set flag and just go to the [[next]] section.
[Set flag]:
@set flag
OK.
[[next]]:
if (get("flag")) {
set ("other", true)
}
{if flag:Flag is set}{else:Flag is not set.}
{if flag:Other is set}{else:Other is not set.}