Просмотр исходного кода

cookbooks/devel/core: small updates for value types

Daniel-Constantin Mierla 2 лет назад
Родитель
Сommit
18ef90e4b4
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      docs/cookbooks/devel/core.md

+ 7 - 3
docs/cookbooks/devel/core.md

@@ -149,10 +149,11 @@ Important: be aware of preprocessor directives that start with `#!`
 
 ### Values
 
-There are three types of values:
+There are three types of values used for parameters, assignments, arithmetic
+or string expressions:
 
 -   integer - numbers of 32bit size
--   boolean - aliases to 1 (true, on, yes) or 0 (false, off, no)
+-   boolean - aliases to `1` (`true`, `on`, `yes`) or `0` (`false`, `off`, `no`)
 -   string - tokens enclosed in between double or single quotes
 
 Example:
@@ -173,6 +174,9 @@ Example:
 
 ```
 
+Note: be aware of specific rules for logical evaluation of expressions and
+return codes, see the docs for `IF` and `return`.
+
 ### Identifiers
 
 Identifiers are tokens which are not enclosed in single or double quotes
@@ -4332,7 +4336,7 @@ called route() block. You can test the value returned by a route using
 
 `return(0)` is same as [`exit()`](devel#exit);
 
-In bool expressions:
+In logical evaluation expressions:
 
 -   Negative is FALSE
 -   Positive is TRUE