aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.52 - [lsplit] Built-In

Mnemonic aid: lsplit for List SPLIT from content

See also:  [aisort] ,  [append] ,  [asort] ,  [clearl] ,  [cmap] ,  [dlist] ,  [e] ,  [hmap] ,  [isort] ,  [lcc] ,  [lcopy] ,  [lhsort] ,  [list] ,  [ljoin] ,  [llen] ,  [lpop] ,  [lset] ,  [lslice] ,  [lsub] ,  [ltol]  and  [translate] 

Creates a list from content by splitting it using the specified parameters. num=N indicates the number of splits, not the number of results. So two splits provides three results, one split provides two, etc. sep=^ defines what separates the splitKey from the contentToSplit. It defaults to a comma:


[lsplit (sep=^,)(num=N,)listName,splitKey^contentToSplit]

[style tag *[b]* ]
[lsplit list1,||,a||b||c||d]
[dlist style=tag,list1]
[lsplit num=2,list1,||,a||b||c||d]
[dlist style=tag,list1]
[lsplit sep=?,list1,||?a||b||c||d]
[dlist style=tag,list1]

*a* *b* *c* *d*
*a* *b* *c||d*
*a* *b* *c* *d*
*a* *b* *c* *d* *a* *b* *c||d* *a* *b* *c* *d*

Other built-ins used here:  [dlist]  and  [style] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7