Hi.

> i'm looking at my fairly minimal openwrt build and, using grep, I
> can't seem to find a single example of that construct under my 
> /usr/lib/lua/luci directory. does that simply mean that that object
> is of that data type and, additionally, must equal exactly one of
> the possible arguments listed? it seems unnecessarily confusing(?)
> to specify both an integer and a string if that's the case, unless
> i'm reading that totally incorrectly.

It is a possible datatype, but rearely used.
One user was/is the "radvd" ui [1] which has serveral options that can
be either a positive integer or the special value "infinity", thus the
datatype `or(uinteger, "infinity")` which would be true for "1", "1000",
"infinity" but not "foo" or "-1".


1: 
https://github.com/openwrt/luci/commit/4f9363d70091bfb1883b1f6ab913554c02cbbad2

~ Jow
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to