I have business users so constants in “let” expression is a bit complex for them. Maybe it could be good to have a third tab : columns, parameters AND variables, even if it’s only for the current expression. You would be able to define variables there, so no “let” syntax and you can drag and drop like columns/parameters.
For unary minus, it was so much expected, thank you !!!
The IF syntax on the contrary of “let” is better for business users, clearer than coder syntax with “(” and “;”. Well that’s our point of view. It’s good !
let week = isoweeknumber([Date])
let yr = year([Date])
//attribute the last incomplete week to the next year
let year = (IF week = 1 and month([Date]) = 12 THEN yr+1 ELSE yr)
padstart(week, '0', 2) & '-' & padstart(year, '0', 2)
Very good improvements ! Will existing projects that contain the old syntax will continue to run correctly after the update?
Maybe the “let” keyword is not that clear. Personally I would prefer “var” but I consider it a detail. I know that javascript also uses the “let” keyword.
Any plans to introduce some syntax highlighting, autocompletion and auto-indentation in the expression builder as expressions will become more complex due to the new possibilities?
Is a further extension of the formula editor with syntax highlighting and autocompletion (dropdown of columns, variables, functions, etc. as you type) also on the roadmap ?