PrevTag: Difference between revisions
Jump to navigation
Jump to search
added a meaningful description |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Description|description=When combined with the keywords '''[[Tag#]] [[EOL]]''',will grab the sequence number of the previous line, which can then be output by the prior coded '''[[PrevTagRef]] [[Tag#]]'''. | {{Description|description=When combined with the keywords '''[[Tag#]] [[EOL]]''',will grab the sequence number of the previous line, which can then be output by the prior coded '''[[PrevTagRef]] [[Tag#]]'''. | ||
Note, the '''previous line must contain a sequence number''' for this to work (either '''[[Seq]] or [[SeqLab]]''', not [[SeqC]] or [[SeqLabC]]) otherwise there is no sequence for compost to reference.}} | Note, the '''previous line must contain a sequence number''' for this to work (either '''[[Seq]] or [[SeqLab]]''', not [[SeqC]] or [[SeqLabC]]) otherwise there is no sequence for compost to reference. | ||
Example: | |||
:'P' NextTagRef Tag# 'Q' PrevTagRef Tag# EOL <br/> | |||
:NextTag Tag# EOL <br/> | |||
:'''SeqLab''' ' first line of block' EOL {NextTag gets the sequence number from this line}<br/> | |||
:SeqLabC 'body of block' EOL <br/> | |||
:'''SeqLab''' ' last line of block' EOL {PrevTag gets the sequence number from this line}<br/> | |||
:PrevTag Tag# EOL <br/> | |||
Example output: | |||
:P1Q2 | |||
:'''N1''' FIRST LINE OF BLOCK | |||
:BODY OF BLOCK | |||
:'''N2''' LASTLINEOFBLOCK}} | |||
{{Stats|id=905|type=Command|class=Any|scope=|version=V11}} | {{Stats|id=905|type=Command|class=Any|scope=|version=V11}} | ||
[[Category:Subs]] | [[Category:Subs]] | ||
Latest revision as of 23:45, 1 May 2017
PrevTag
Description
When combined with the keywords Tag# EOL,will grab the sequence number of the previous line, which can then be output by the prior coded PrevTagRef Tag#.
Note, the previous line must contain a sequence number for this to work (either Seq or SeqLab, not SeqC or SeqLabC) otherwise there is no sequence for compost to reference.
Example:
- 'P' NextTagRef Tag# 'Q' PrevTagRef Tag# EOL
- NextTag Tag# EOL
- SeqLab ' first line of block' EOL {NextTag gets the sequence number from this line}
- SeqLabC 'body of block' EOL
- SeqLab ' last line of block' EOL {PrevTag gets the sequence number from this line}
- PrevTag Tag# EOL
Example output:
- P1Q2
- N1 FIRST LINE OF BLOCK
- BODY OF BLOCK
- N2 LASTLINEOFBLOCK
Stats
ID 905 Type Command Class Any Min Version V11