Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Creating an enclosing widget

$
0
0
In SugarCube, the <<if>> macro has a boolean parameter, as well as a closing tag, <</if>> or <<endif>>.

Can I, using <<widget>>, create something similar? I want to make a widget that can accept parameters, as well as having a closing tag.

Example:
<<showIf "showDesc" "Nature">>The tree is green.<<endShow>>
This will only show the "The tree is green." text if showDesc is true and settings.describe is "Nature".

Viewing all articles
Browse latest Browse all 1844

Trending Articles