As explained in Snowman's documentation that story format is designed for people that know how to program using HTML, CSS, Javascript, jQuery and Underscore.
The following is one way to do what you asked using Snowman.
<% s.someVariable = "value" %>
<% if (s.someVariable == "value") { %>
This text should appear.
<% } %>
The following is the same example as above using SugarCube.
<<set $someVariable to "value">>
<<if $someVariable is "value">>
This text should appear.
<</if>>
Comments
The following is one way to do what you asked using Snowman.
The following is the same example as above using SugarCube.
Okay, thanks. I guess my confusion was due to thinking that the text would be inside of the code section.
I know Java and C, but my Javascript's a little rusty.