This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:cachevariables [2022/02/22 10:11] – [Formula syntax] lineflyer | en:cachevariables [2022/02/22 10:20] – [Functions] lineflyer | ||
---|---|---|---|
Line 55: | Line 55: | ||
The syntax will be explained in detail in the following sub-chapters. | The syntax will be explained in detail in the following sub-chapters. | ||
- | However as a quick overview | + | However as a quick overview about what is supported, you will find a list of examples here: |
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
+ | |||
* '' | * '' | ||
* '' | * '' | ||
Line 70: | Line 73: | ||
- | **FIXME** Aren't some of the examples to complex (or might need interim steps written down) to understand? | + | |
==== Value types ==== | ==== Value types ==== | ||
Line 79: | Line 82: | ||
|Integer | Number without decimal places | Use digits | '' | |Integer | Number without decimal places | Use digits | '' | ||
|Decimal | Number with decimal places | Use digits with decimal point or comma | '' | |Decimal | Number with decimal places | Use digits with decimal point or comma | '' | ||
- | |String | Text | Surround value with '' | + | |String | Text | Surround value with '' |
- | **FIXME** using monotext does not work for ' in this table as its also part of the monotext syntax in Dokuwiki. :( | ||
==== Numeric operators ==== | ==== Numeric operators ==== | ||
Line 88: | Line 90: | ||
^ Operator ^ Function ^ Example ^ | ^ Operator ^ Function ^ Example ^ | ||
- | |+|Addition|'' | + | |'' |
- | |-|Subtraction (or negating a number)|'' | + | |'' |
- | |*|Multiplication|'' | + | |'' |
- | |/ | + | |'' |
- | |%|Modulo|'' | + | |'' |
- | |**FIXME**|Potentiate|'' | + | |'' |
- | |!|Factorize|'' | + | |'' |
==== Relational operators and conditions ==== | ==== Relational operators and conditions ==== | ||
Line 133: | Line 135: | ||
|'' | |'' | ||
|'' | |'' | ||
- | |'' | + | |'' |
|'' | |'' | ||
|'' | |'' | ||
Line 183: | Line 185: | ||
* The Formula '' | * The Formula '' | ||
* The Formula '' | * The Formula '' | ||
- | * The Formula '' | + | * The Formula '' |
- | * The Formula '' | + | * The Formula '' |
- | **FIXME** Double underscore is interpreted as underline by Dokuwiki | ||
==== Range expressions ==== | ==== Range expressions ==== | ||
- | You can specify ranges in formulas using '' | + | You can specify ranges in formulas using '' |
+ | |||
+ | **FIXME** Link to anchor on waypoint calc page as soon as its updated to cover waypoint generation with ranges. | ||
An example for a range expression is '' | An example for a range expression is '' |