Stringfunctions+ | Formula LISTPART
Description
This formula displays parts of an HTML list.
Formula(s)
{=LISTPART("Object attribute";Start;Length;Display type;Include surrounding HTML)}
Result
String
Array
Parameter
Parameter | Content | Format | Default value | Explanation |
---|---|---|---|---|
Object attribute | Name or ID of the attribute to be retrieved from the referenced elements | Attribute name: String Attribute ID: Integer |
|
|
Start | Non-negative index starting from 0 | Integer | 0 |
|
Length | Length of the list | Integer | 0 | Positive: List contains this number of elements (if possible) Negative: Original list shortened by the number of elements 0: all (from start in each case) |
Display type | Output format, as in the original, as unordered list (ul), ordered list (ol), array or the list items (li) only | Integer | DISPLAY_TYPE_ORIGINAL | Possible values:
|
Include surrounding HTML | TRUE or FALSE | Boolean | FALSE | TRUE: Surrounding HTML is included FALSE: Only the list / list elements are included |