= Alternation Syntax

The v3 alternation syntax of `%{foo:-bar}` is no longer necessary, and has been removed.

The new approach is simpler and clearer: just use short-circuit `||`
in an expression.  This approach also means that nested alternation is no longer necessary.

.Old Style - no longer supported
[source,unlang]
----
&Reply-Message := "Hello %{%{User-Name}:-none}"
&Reply-Message := "Hello %{%{NAS-Identifer}:-%{%{User-Name}:-none}}"
----

.New Alternation
[source,unlang]
----
&Reply-Message := "Hello %{&User-Name || 'none'}"
&Reply-Message := "Hello %{&NAS-Identifier || &User-Name || 'none'}"
----

[NOTE]
====
Any strings in an alternation like above must be quoted.  Numbers and IP addresses do not need to be quoted.
====

// Copyright (C) 2021 Network RADIUS SAS.  Licenced under CC-by-NC 4.0.
// This documentation was developed by Network RADIUS SAS.
