# Libuci-lua: extended section notation

**URL:** <https://forum.openwrt.org/t/libuci-lua-extended-section-notation/215763>\
**Category:** Talk about Documentation\
**Created:** [November 16, 2024, 8:36am UTC](https://forum.openwrt.org/t/libuci-lua-extended-section-notation/215763 "2024-11-16T08:36:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilaro](https://forum.openwrt.org/letter_avatar/gilaro/32/5_5575768a8748004e209b776fc1b2916d.png) [@gilaro](https://forum.openwrt.org/u/gilaro)\
**Post date:** [November 16, 2024, 8:36am UTC](https://forum.openwrt.org/t/libuci-lua-extended-section-notation/215763/1 "2024-11-16T08:36:08Z")

</div>

Hi!

The Wiki section "[Lua Bindings for UCI](https://openwrt.org/docs/techref/uci#lua_bindings_for_uci)" in the UCI article contains information about extended notation that is no longer true.

> From what I know, there seem to be no way to access `“@rdate[0]”` directly. You have to iterate with `x:foreach` to list all the elements of a given type.

> ...

> So if you want to modify `system.@rdate[0].server` you need to iterate the type, retrieve the section name `[“.name”]` and then call:

The extended notation in Lua code is supported since 2017 (commit: ff33bb219bc409ce3071734a1c28d9165392d6ea).
