User Tools

Site Tools


twine1:tags

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

twine1:tags [2017/10/09 20:39] (current)
Line 1: Line 1:
 +====tags()====
  
 +Has a value equal to an array containing the current passage'​s tags. The meaning of "​current passage"​ is the same as it is for passage(). Since this is a Javascript array, you will need to use built-in array functions to obtain values from it. Usually, you'd simply want to do something like this:
 +<​code>​
 +<<if tags().indexOf("​thunder"​) > -1>>\
 +Thunder is crackling above!
 +<<​endif>>​\
 +</​code>​
twine1/tags.txt ยท Last modified: 2017/10/09 20:39 (external edit)