Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally disable conversion variable in expression from string to numeric or boolean #2376

Closed
andrewtelnov opened this issue Sep 9, 2020 · 0 comments
Milestone

Comments

@andrewtelnov
Copy link
Member

andrewtelnov commented Sep 9, 2020

In the most case it makes sense to convert string to numeric, if this conversion is doable. In this case expression will work with them as numeric when possible. For example, the expression: "{val1} + {val2}", where val1: "1" and val2: "2" will return 3.
However, in some cases developers need to have these variables as strings and want to have the result "12".
To support both scenarios, we are adding the following '#' variable prefix to disable the conversion.
"{val1} + {val2}" will return 3 and "{#val1} + {#val2}" will return "12".

@andrewtelnov andrewtelnov added this to the v1.8.2 milestone Sep 9, 2020
@andrewtelnov andrewtelnov changed the title Disable convertion variable in expression from string to numeric or boolean Optionally disable convertion variable in expression from string to numeric or boolean Sep 9, 2020
@andrewtelnov andrewtelnov changed the title Optionally disable convertion variable in expression from string to numeric or boolean Optionally disable conversion variable in expression from string to numeric or boolean Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant