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