Skip to content

Commit

Permalink
fixes and standardization
Browse files Browse the repository at this point in the history
.Example instead of *Example*

Use "[source,unlang] ---" for code blocks instead of ``
  • Loading branch information
alandekok committed Aug 4, 2019
1 parent 60a8bb6 commit fa562f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions doc/unlang/cond_and.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ two conditions. This operator evaluates _condition-1_ and returns
`false` if _condition-1_ returns `false`. Only if _condition-1_
returns `true` is _condition-2_ evaluated and its result returned.

*Examples:*

`if (User-Name && EAP-Message) { ...`
.Examples
[source,unlang]
----
if (&User-Name && &EAP-Message) { ...
----

// Copyright (C) 2019 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
// Development of this documentation was sponsored by Network RADIUS SAS.
8 changes: 5 additions & 3 deletions doc/unlang/cond_or.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ expressions. This operator evaluates _condition-1_ and returns `true`
if _condition-1_ returns true. Only if _condition-1_ returns `false`
is _condition-2_ evaluated and its result returned.

*Examples:*

`if (User-Name || NAS-IP-Address) { ...`
.Examples
[source,unlang]
----
if (&User-Name || &NAS-IP-Address) { ...
----

// Copyright (C) 2019 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
// Development of this documentation was sponsored by Network RADIUS SAS.
2 changes: 1 addition & 1 deletion doc/unlang/condition.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Conditions are expressed using the following syntax:
| link:cond_data.adoc[data] | Check value of data.
| link:cond_cmp.adoc[lhs OP rhs] | Compare two kinds of data.
| link:cond_para.adoc[( condition )] | Check sub-condition
| link:cond_not.adoc[( ! condition )] | Negate a conditional check
| link:cond_not.adoc[! condition] | Negate a conditional check
| link:cond_and.adoc[( condition ) && ...] | Check a condition AND the next one
| link:cond_or.adoc[( condition ) \|\| ...] | Check a condition OR the next one
|=====
Expand Down

0 comments on commit fa562f3

Please sign in to comment.