Difference between revisions of "SalesRow/GetLast/Cargo"
From Sega Retro
Line 1: | Line 1: | ||
− | {{#ifexpr:({{{1|}}} > {{#var:last}}) and ({{{1|}}} < {{#var:currentdate}})|{{#vardefine:last|{{{1|}}}}}}}<noinclude>[[Category:Cargo templates]]</noinclude> | + | {{#ifexpr:({{{1|}}} > {{#var:last}}) and ({{{1|}}} < {{#var:currentdate}})|{{#vardefine:last|{{{1|}}}}}}}<noinclude> |
+ | |||
+ | |||
+ | This should be a simple if current > previous && current < limit, previous = current | ||
+ | <pre>{{#vardefine:currentdate|20200101}} | ||
+ | {{#vardefine:last|20190202}} | ||
+ | {{SalesRow/GetLast/Cargo|20190101}} | ||
+ | {{#var:last}}</pre> | ||
+ | |||
+ | {{#vardefine:currentdate|20200101}} | ||
+ | {{#vardefine:last|20190202}} | ||
+ | {{SalesRow/GetLast/Cargo|20190101}} | ||
+ | {{#var:last}} | ||
+ | |||
+ | [[Category:Cargo templates]]</noinclude> |
Revision as of 12:41, 4 May 2022
Expression error: Unexpected > operator.
This should be a simple if current > previous && current < limit, previous = current
{{#vardefine:currentdate|20200101}} {{#vardefine:last|20190202}} {{SalesRow/GetLast/Cargo|20190101}} {{#var:last}}
20190202