Template:LabVIEW VI Analyzer Toolkit InVersion: Difference between revisions
Appearance
Fix inverted conditions |
Add default values for first and last version |
||
| Line 1: | Line 1: | ||
<includeonly>{{#ifexpr:{{#switch:{{{1|{{{first| | <includeonly>{{#ifexpr:{{#switch:{{{1|{{{first|0}}}}}} | ||
| 2017 SP1 = 2017 | | 2017 SP1 = 2017 | ||
| 2022 Q3 = 2022 | | 2022 Q3 = 2022 | ||
| 2023 Q1 = 2023 | | 2023 Q1 = 2023 | ||
| 2024 Q1 = 2024 | | 2024 Q1 = 2024 | ||
| #default = {{{1|{{{first}}}}}} | | #default = {{{1|{{{first|0}}}}}} | ||
}} <= {{{3|{{{current}}}}}} | }} <= {{{3|{{{current}}}}}} | ||
| {{#ifexpr:{{#switch:{{{2|{{{last|9999}}}}}} | | {{#ifexpr:{{#switch:{{{2|{{{last|9999}}}}}} | ||
| Line 11: | Line 11: | ||
| 2023 Q1 = 2023 | | 2023 Q1 = 2023 | ||
| 2024 Q1 = 2024 | | 2024 Q1 = 2024 | ||
| #default = {{{2|{{{last}}}}}} | | #default = {{{2|{{{last|9999}}}}}} | ||
}} >= {{{3|{{{current}}}}}} | }} >= {{{3|{{{current}}}}}} | ||
| {{{4|{{{value}}}}}} | | {{{4|{{{value}}}}}} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> | ||
Revision as of 09:01, 19 August 2024
This documentation is transcluded from Template:LabVIEW VI Analyzer Toolkit InVersion/doc (history).
Returns a value only if a version is between a first and last version.
Usage
{{LabVIEW VI Analyzer Toolkit InVersion
|first=2009
|last=2024 Q1
|current=2019
|value=Value when between versions
}}
Parameters
| Parameter | Description |
|---|---|
| first (optional) | First version where the value is included. If no value is specified, the value is included in all versions until 'last'. |
| last (optional) | Last version where the value is included. If no value is specified, the value is included in all versions since 'first'. |
| current | Current version |
| value | Value to display when current version is between first and last version. If the current version is "-1", the value is displayed with a version range: "<value> (LabVIEW VI Analyzer Toolkit <first>..<last>)" or "<value> (LabVIEW VI Analyzer Toolkit <first> and later"). |