"Conditional Statements": Snowman (v1.3.0)
Summary
Through using the s
global variable and the built-in Underscore template functionality, JavaScript conditional statements can be run to show content in Snowman.
Live Example
Twee Code
:: StoryTitle
Conditional Statements in Snowman
:: Start
<%
s.animal = "horse";
%>
<% if(s.animal == "dog"){ %>
It's a dog!
<% } else { %>
It's a horse!
<% } %>
Download: Twee Code