Skip to content
Permalink
Browse files

fixes and standardization

.Example instead of *Example*

Use "[source,unlang] ---" for code blocks instead of ``
  • Loading branch information
alandekok committed Aug 4, 2019
1 parent 60a8bb6 commit fa562f3117a7acc7040f526098aa9120415bf7c8
Showing with 11 additions and 7 deletions.
  1. +5 −3 doc/unlang/cond_and.adoc
  2. +5 −3 doc/unlang/cond_or.adoc
  3. +1 −1 doc/unlang/condition.adoc
@@ -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.
@@ -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.
@@ -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
|=====

0 comments on commit fa562f3

Please sign in to comment.
You can’t perform that action at this time.