SPIP
Article validated
The article « #PROFONDEUR (https://www.spip.net/en_article6733.html) »
was validated by George.
#PROFONDEUR
Tuesday 23 August 2022 , by jack
#PROFONDEUR
returns the depth of a field in the tree structure.
Sections at the root return a depth of 0.
Example
- Section A
- Section B
- Section C
- Section D
- Section E
- Section F
- Section G
On this tree structure, we get:
- Depth ****: sections A, F
- Depth 1: sections B, C, E, G
- Depth 2: section D
— Sent by SPIP (https://www.spip.net/)