If you want to track if something is true or false then you should use a Boolean value instead of a String based one.
1. Initialise your story variables within a startup tagged special passage like so.
(set: $Test111 to false)
2. Use CSS within your project's Story Stylesheet area to hide the visual output of the startup tagged passage.
tw-include[type="startup"] {
display: none;
}
WARNING: Due to how the (click:) related macro works it is generally recommend to only using them if it is not possible to achieve a similar result using a (link:) related macro.
3. Use (if:) macros and a (unless:) macro to control when the Lead and Answer are shown.
{
This is Test passage 1.1.
<br>
(unless: $Test111)[
(link: "This is the lead")[{
(set: $Test111 to true)
(show: ?Test111Answer)
}]
]
[And this is the answer.](Test111Answer|
}
(if: $Test111)[
(show: ?Test111Answer)
]
note: A hidden hook need to be added to the HTML page before a related (show:) macro can be used to reveal it, because of this you should place the hidden hook earlier within the Passage than the related (show:) macro.
The exception to this condition is when the related (show:) macro is placed within the associated hook of an interaction macro like (link:) or (click:).