= The default Statement

.Syntax
[source,unlang]
----
default {
    [ statements ]
}
----

The `default` statement can be used only within a
xref:unlang/switch.adoc[switch] statement.  The `default` statement
cannot be used outside of a xref:unlang/switch.adoc[switch] statement.

The `default` statement is matched only when no other
xref:unlang/case.adoc[case] statement matches.

.Example
[source,unlang]
----
switch &User-Name {
    case "bob" {
        reject
    }

    case &Filter-Id {
        reject
    }

    default {
        ok
    }
}
----

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