User Tools

Site Tools


harlowe:if

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
harlowe:if [2017/06/19 00:02]
l created
harlowe:if [2017/06/19 00:05]
l
Line 1: Line 1:
 **(if: // [[harlowe:​Boolean|boolean]]//​) -> //​[[harlowe:​Changer|changer]]//​** **(if: // [[harlowe:​Boolean|boolean]]//​) -> //​[[harlowe:​Changer|changer]]//​**
 +
 This macro accepts only [[harlowe:​boolean|booleans]],​ and produces a [[harlowe:​command|command]] that can be attached to hooks This macro accepts only [[harlowe:​boolean|booleans]],​ and produces a [[harlowe:​command|command]] that can be attached to hooks
 to hide them "​if"​ the value was false. to hide them "​if"​ the value was false.
Line 43: Line 44:
  
 [[harlowe:​unless|(unless:​)]],​ [[harlowe:​else-if|(else-if:​)]],​ [[harlowe:​else|(else:​)]],​ [[harlowe:​hidden|(hidden:​)]] [[harlowe:​unless|(unless:​)]],​ [[harlowe:​else-if|(else-if:​)]],​ [[harlowe:​else|(else:​)]],​ [[harlowe:​hidden|(hidden:​)]]
 +
 +**(unless: // [[harlowe:​Boolean|boolean]]//​) -> //​[[harlowe:​Changer|changer]]//​**
 +
 +This [[Harlowe]] macro is the negated form of [[harlowe:​if|(if:​)]]:​ it accepts only [[harlowe:​boolean|booleans]],​ and returns
 +a [[harlowe:​command|command]] that can be attached hooks to hide them "​if"​ the value was true.
 +
harlowe/if.txt ยท Last modified: 2017/10/09 20:39 (external edit)