User Tools

Site Tools


twine1:tags

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:

<<if tags().indexOf("thunder") > -1>>\
Thunder is crackling above!
<<endif>>\
twine1/tags.txt · Last modified: 2017/08/19 17:07 by videlais