Skip to content

Commit

Permalink
word smithing
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 23, 2023
1 parent c0ebe60 commit 4796a25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/antora/modules/reference/pages/unlang/local.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
...
}
Expand All @@ -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.

0 comments on commit 4796a25

Please sign in to comment.