You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use parenthesis instead of .. for ranges: {int priority: (1, 10)}. Also add an ability to refer the first or the last range border inside expansions like {int priority: (10, $from + 20)}. In other words allow +, -, *, /, % operators and $from, $to variables inside ranges. Note that just one range border can have math expression, not both and it's not possible to refer to anything outside of the current range.
Notes
parenthesis should not be escaped
spacing doesn't matter
Examples
{/?file(1, 4) image} - expect from one to four images
{int priority: (1, 10)} - expect one priority value which is in [1..10] range
The text was updated successfully, but these errors were encountered:
Use parenthesis instead of
..
for ranges:{int priority: (1, 10)}
. Also add an ability to refer the first or the last range border inside expansions like{int priority: (10, $from + 20)}
. In other words allow +, -, *, /, % operators and$from
,$to
variables inside ranges. Note that just one range border can have math expression, not both and it's not possible to refer to anything outside of the current range.Notes
Examples
{/?file(1, 4) image}
- expect from one to four images{int priority: (1, 10)}
- expect one priority value which is in [1..10] rangeThe text was updated successfully, but these errors were encountered: