title: $:/plugins/tiddlywiki/tour/globals tags: $:/tags/Global \function tour-current-tag() [{$:/config/CurrentTour}get[tour-tag]] \end \function tour-is-not-first-step() [all[shadows+tiddlers]tag[$:/tags/Tour/IntroductionToTiddlyWiki]before{$:/state/tour/step}count[]compare:number:gt[0]] \end \procedure tour-initialise-current-tour-step() <$transclude $tiddler={{$:/state/tour/step}} $field="enter-actions"/> \end \procedure tour-restart() <$action-setfield $tiddler="$:/config/ShowTour" text="show"/> <$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tagfirst[]] }}}/> <> \end \procedure tour-next-step() <$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tagafter{$:/state/tour/step}else[$:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki/finished]] }}}/> <> \end \procedure tour-previous-step() <$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tagbefore{$:/state/tour/step}] :else[all[shadows+tiddlers]tagfirst[]] }}}/> <> \end