Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
Beide kanten vorige revisieVorige revisieVolgende revisie | Vorige revisie | ||
nl:cachevariables [2022/06/05 07:36] – [Bedieningsgedeelte] linstylemon | nl:cachevariables [2023/06/05 09:04] (huidige) – [Bereikuitdrukkingen] added : to formulas linstylemon | ||
---|---|---|---|
Regel 1: | Regel 1: | ||
- | FIXME **Deze pagina is nog niet volledig vertaald. Help alsjeblieft de vertaling compleet te maken.**\\ // | + | ====== Cache Variabelen |
- | + | ||
- | ====== Cache Variables | + | |
===== Introductie ===== | ===== Introductie ===== | ||
Regel 28: | Regel 26: | ||
|{{: | |{{: | ||
|{{: | |{{: | ||
- | ===== Variable section | + | ===== Variabele sectie |
{{ : | {{ : | ||
- | This section allows you the enter the value or formula for the generated variables. You can perform the following actions here: | + | In deze sectie kun je de waarde of formule voor de gegenereerde variabelen invoeren. Je kunt hier de volgende acties uitvoeren: |
- | ^ Button | + | ^ Knop ^ Actie ^ |
- | |{{: | + | |{{: |
- | |{{: | + | |{{: |
- | |{{: | + | |{{: |
- | |{{: | + | |{{: |
- | The text below the value field will show a result preview. This can either be the concrete | + | De tekst onder het waardeveld toont een voorbeeld van een resultaat. Dit kan het concrete |
+ | ===== Formule syntaxis ===== | ||
- | ===== Formula syntax ===== | + | Het waardeveld van elke variabele kan verschillende soorten waarden en ook andere variabelen bevatten. Het ondersteunt tal van wiskundige bewerkingen, |
- | The value field of each variable can hold different types of values and also other variables. It supports numerous mathematical operations as well as several (partly geocaching related) numerical and string related functions as described below. | + | < |
- | + | Wees niet bang voor de syntaxis. Hoewel het vrij complexe bewerkingen ondersteunt, | |
- | < | + | |
- | Don't be afraid of the syntax. While it supports rather complex operations, it can also be used for simple and plain calculations as you are used to from any calculator. Some supported functions are probably for advanced users only. | + | |
</ | </ | ||
- | The syntax will be explained | + | De syntaxis wordt in de volgende subhoofdstukken |
- | However as a quick overview about what is supported, you will find a list of examples here: | + | Hier zie je lijst met voorbeelden van wat wordt ondersteund. |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | ==== Waardetypes ==== | ||
+ | De formulesyntaxis ondersteunt drie typen waarden. | ||
+ | Typen is een ruim begrip, in het algemeen zal de evaluatie van de formule proberen de gegeven waarden zo goed mogelijk te laten passen. | ||
+ | ^ Type ^ Beschrijving ^ Letterlijke syntaxis ^ Voorbeelden ^ | ||
+ | |Heel getal | Getal zonder decimalen | Gebruik cijfers | '' | ||
+ | |Decimaal | Getal met decimalen | Gebruik cijfers met decimale punt of komma | '' | ||
+ | |String | Tekst | Waarde omringen met '' | ||
- | ==== Value types ==== | + | ==== Numerieke operatoren |
- | The formula syntax supports three types of values. | + | De volgende Numerieke operatoren worden ondersteund: |
- | Typing is loose, in general formula evaluation will try to fit given values as best as possible. | + | |
- | ^ Type ^ Description | + | ^ Operator |
- | |Integer | + | |'' |
- | |Decimal | + | |'' |
- | |String | + | |'' |
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | ==== Relationele operatoren en voorwaarden ==== | ||
- | ==== Numeric operators ==== | + | Relationele operatoren zoals ''<'' |
- | The following numeric operators are supported: | + | De uitdrukking '' |
- | ^ Operator ^ Function ^ Example ^ | + | Relationele operatoren worden vooral gebruikt in de '' |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |''/'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | ==== Relational operators and conditions ==== | + | De '' |
- | Relational operators like ''<'' | + | Dit betekent dat als de functie 5 parameters heeft gekregen, dan: |
+ | * Als de eerste parameter waar is, wordt de tweede geretourneerd | ||
+ | * Anders, als de derde parameter waar is, wordt de vierde parameter geretourneerd | ||
+ | * Anders wordt de vijfde parameter geretourneerd | ||
- | For example, the expression | + | Bijvoorbeeld '' |
- | Relational operators are especially used in the '' | + | ^ Operator ^ Betekenis ^ Voorbeeld ^ |
+ | |'' | ||
+ | | ''<>'' | ||
+ | |''<'' | ||
+ | | ''< | ||
+ | |'' | ||
+ | |''> | ||
- | The '' | + | ==== Functies ==== |
- | This means, that if the function was given 5 parameters | + | Functies beginnen allemaal met een letter, bevatten alleen letters en cijfers en hebben een direct gekoppelde parameterlijst tussen haakjes. Meerdere |
- | * If the first parameter is true, then the second is returned | + | |
- | * Else if the third parameter is true, then the fourth parameter is returned | + | |
- | * Else the fifth parameter is returned | + | |
- | For example | + | Een voorbeeld van een functieaanroep met één parameter is '' |
- | ^ Operator ^ Meaning ^ Example ^ | + | De volgende functies zijn gedefinieerd: |
- | |'' | + | |
- | | ''<>'' | + | |
- | |''<'' | + | |
- | | ''< | + | |
- | |''>'' | + | |
- | |''> | + | |
- | ==== Functions ==== | + | ^ Functie ^ Synoniemen ^ Beschrijving ^ Parameter 1 ^ Parameter 2 ^ Voorbeeld ^ |
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
- | Functions all start with a letter, contain only letters and digits and have a directly attached parameter list in parenthesis. Multiple parameters are separated using '';'' | + | ==== Variabelen ==== |
- | An example for a one-parameter function call is '' | + | Variabelen worden in een formule gebruikt als tijdelijke aanduidingen voor waarden. Wanneer een formule die een variabele bevat, wordt geëvalueerd, |
- | The following functions are defined: | + | Namen van variabelen zijn hoofdlettergevoelig en moeten beginnen met een alfanumeriek teken. Resterende tekens kunnen alfanumeriek of cijfers zijn. |
+ | Voorbeelden voor namen van wettelijke variabelen zijn: '' | ||
- | ^ Function ^ Synonyms ^ Description ^ Parameter 1 ^ Parameter 2 ^ Example ^ | + | Variabelen van één letter kunnen gewoon |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
+ | Als meerdere tekens binnen een formule worden aaneengeschakeld, | ||
- | ==== Variables ==== | + | Variabelenamen die langer zijn dan één char kunnen in Unix-Bash-Style gedeclareerd worden door hun naam vooraf te laten gaan aan '' |
- | Variables are used in a formula as placeholders for values. When a formula containing a variable | + | In situaties waarin de naam van de variabele |
- | + | ||
- | Variable names are case sensitive and have to start with an alphanumeric char. Remaining chars can be alphanumeric or digits. | + | |
- | Examples for legal variable names are: '' | + | |
- | + | ||
- | One-letter-variables can just be typed into the formula and will be evaluated along. For example, the formula '' | + | |
- | + | ||
- | If multiple chars are concatenated within a formula, they will be interpreted as individual one-letter-variables. For example, the formula '' | + | |
- | + | ||
- | Variable names longer than one char can be declared in Unix-Bash-Style by prepending their name with '' | + | |
- | + | ||
- | In situations where variable name conflicts with following alphas/chars, the variable name can be enclosed | + | |
- | Some more complex examples: | + | Enkele meer complexe voorbeelden: |
- | + | ||
- | * The formula '' | + | |
- | * The formula '' | + | |
- | * The formula '' | + | |
- | * The formula '' | + | |
- | * Using '' | + | |
- | + | ||
- | ==== Concatenations ==== | + | |
- | If multiple expressions are concatenated directly after another with no separating operator, values are concatenated to a consecutive expression. This expression evaluates to a number if it forms a valid numeric expression, otherwise it evaluates to a text value. | + | * De formule '' |
+ | * De formule '' | ||
+ | * De formule '' | ||
+ | * De formule '' | ||
+ | * Met de syntaxis '' | ||
- | Expressions, | + | ==== Aaneenschakelingen ==== |
- | For example, the formula '' | + | Als meerdere uitdrukkingen direct na elkaar worden aaneengeschakeld zonder scheidingsoperator, worden waarden aaneengeschakeld tot een opeenvolgende uitdrukking. Deze uitdrukking evalueert tot een getal als het een geldige numerieke uitdrukking vormt, anders evalueert het tot een tekstwaarde. |
- | ==== Overflow character ==== | + | |
- | In concatenated expressions, the character '' | + | Expressies, die aaneengeschakeld kunnen worden, omvatten b.v. gehele cijfers, variabelen, uitdrukkingen tussen haakjes en het Overloop-teken (zie volgende paragraaf). |
- | An example should make the usage clear: | + | De formule '' |
- | * The Formula '' | + | ==== Overloopteken ==== |
- | * The Formula '' | + | |
- | * The Formula '' | + | |
- | * The Formula '' | + | |
- | * The Formula '' | + | |
+ | In aaneengeschakelde uitdrukkingen kan het teken '' | ||
- | ==== Range expressions ==== | + | Een voorbeeld zou het gebruik duidelijk moeten maken: |
+ | * De formule '' | ||
+ | * De formule '' | ||
+ | * De formule '' | ||
+ | * De formule '' | ||
+ | * De formule '' | ||
- | You can specify ranges in formulas using '' | + | ==== Bereikuitdrukkingen ==== |
- | **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 '' | + | Je kunt bereiken in formules specificeren met '' |
- | You may specify consecutive values using '','' | + | **FIXME** Link to anchor on waypoint calc page as soon as its updated |
- | | + | |
- | | + | |
- | * '' | + | |
- | When a range is used in a context where only one value is allowed (this is the case in normal calculation), | + | Een voorbeeld voor een bereikuitdrukking |
- | Ranges currently support only positive constant integer values. A range must always be evaluate to at least 1 value and a range may not evaluate to more than 20 values. For example the following ranges are invalid: | + | Je kunt opeenvolgende waarden opgeven met '','' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | |
- | * '' | + | |
- | A formula may include one or more range definitions mixed with normal other formula parts. For example the following formulas are valid: | + | Wanneer een bereik wordt gebruikt in een context waarin slechts één waarde is toegestaan (dit is het geval bij normale berekeningen), |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
+ | Bereiken ondersteunen momenteel alleen positieve constante gehele getallen. Een bereik moet altijd worden geëvalueerd tot ten minste 1 waarde en een bereik mag niet worden geëvalueerd tot meer dan 20 waarden. De volgende bereiken zijn bijvoorbeeld ongeldig: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | ==== Comments | + | Een formule kan een of meer bereikdefinities bevatten, gemengd met normale andere formuleonderdelen. De volgende formules zijn bijvoorbeeld geldig: |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * | ||
+ | ==== Opmerkingen==== | ||
- | You may enter comments into formula expressions using the ''#'' | + | Je kunt opmerkingen in formule-uitdrukkingen invoeren met het teken ''#'' |
- | * '' | + | |
- | * '' | + | |