diff --git a/doc/antora/modules/reference/pages/unlang/local.adoc b/doc/antora/modules/reference/pages/unlang/local.adoc index acef2a4127552..f1e2c437ca596 100644 --- a/doc/antora/modules/reference/pages/unlang/local.adoc +++ b/doc/antora/modules/reference/pages/unlang/local.adoc @@ -54,7 +54,7 @@ if (&User-Name == "bob") { # declare "len" as ALLOWED to be used uint32 len - # this test ALWAYS fails + # this test ALWAYS fails, as "len" has not been assigned a value if (&len) { ... } @@ -66,5 +66,7 @@ if (&User-Name == "bob") { } ---- +The variable declaration and assignment must be sepaarted. Constructions like `uint32 len = %(length:%{User-Name})` are not allowed. + // Copyright (C) 2023 Network RADIUS SAS. Licenced under CC-by-NC 4.0. // Development of this documentation was sponsored by Network RADIUS SAS.