]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note that %expr is no longer needed
authorAlan T. DeKok <aland@freeradius.org>
Mon, 2 Oct 2023 19:04:22 +0000 (15:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 2 Oct 2023 19:04:22 +0000 (15:04 -0400)
doc/antora/modules/reference/pages/xlat/builtin.adoc

index 14cf29e912a0a4d01a7c5f44f14aeb1f8e80cd04..99de6151aff0273f3534012f7f09b6e93237853c 100644 (file)
@@ -871,38 +871,13 @@ not bob!
 
 === %expr(<string>)
 
-Evaluates the string as an xref:reference:unlang/expression.adoc[Unlang expression], and returns the result.  Please see the
-xref:reference:unlang/expression.adoc[Unlang expression] page for full documentation on expressions.
-
-[NOTE]
-====
-You probably don't want to use this.  In v4, the main use of `%expr(...(` is inside of strings which can't be split into actual expressions.
-====
-
-.Return: _data_
-
-.Example
-
-[source,unlang]
-----
-&reply.Tmp-String-0 := "%expr(1 + 2}"
-----
-
-.Output
-
-```
-3
-```
-
-.A Better example of not using `%expr(...)`
+This expansion has been removed.  Instead, just use `%{...}` with math inside of the brackets.
 
 [source,unlang]
 ----
-&Tmp-String-0 := 1 + 2
+&reply.Reply-Message := "Adding 1 + 2 = %{1 + 2}"
 ----
 
-
-
 === %nexttime(<time>)
 
 Calculate number of seconds until next n hour(`s`), day(`s`), week(`s`), year(`s`).