This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:cachevariables [2022/09/24 06:55] – [Numeric operators] moving-bits | en:cachevariables [2022/11/25 10:58] (current) – [Range expressions] New syntax for range expressions lineflyer | ||
|---|---|---|---|
| Line 132: | Line 132: | ||
| |'' | |'' | ||
| |'' | |'' | ||
| + | |'' | ||
| |'' | |'' | ||
| |'' | |'' | ||
| Line 140: | Line 141: | ||
| |'' | |'' | ||
| |'' | |'' | ||
| - | |||
| ==== Variables ==== | ==== Variables ==== | ||
| Line 187: | Line 187: | ||
| ==== 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. | **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 '' |
| You may specify consecutive values using '','' | You may specify consecutive values using '','' | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | When a range is used in a context where only one value is allowed (this is the case in normal calculation), | + | When a range is used in a context where only one value is allowed (this is the case in normal calculation), |
| 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: | 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: | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| A formula may include one or more range definitions mixed with normal other formula parts. For example the following formulas are valid: | A formula may include one or more range definitions mixed with normal other formula parts. For example the following formulas are valid: | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |