Hearts
From Scratchpad
A Heart in <3 is:
- A definition of shreds that run in a specific page element.
or
- A miscellaneous shred to be called upon.
Contents |
[edit] Syntax
[edit] <
A heart begins with a less-than.
[edit] The name
After the less-than is the name of the heart.
[edit] 3
The heart is closed with a three.
[edit] Example
<name3
[edit] Breaking the Heart
All content between the initial heart and the broken heart is parsed as the heart's code.
[edit] Syntax
A broken heart is similar to a heart, but has a forward slash between the less-than and the name. If no name is supplied, the containing heart will be broken.
Note that a broken heart can be used as the result of an if statement. This can be useful. For example:
<loop3
//50-50 chance of terminating the loop
<maybe3
</loop3
</3
^maybe
</3
[edit] Example
</name3 or </3
