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

Allow variables within strings in BooleanParser #590

Open
simonschaufi opened this issue May 7, 2022 · 1 comment
Open

Allow variables within strings in BooleanParser #590

simonschaufi opened this issue May 7, 2022 · 1 comment

Comments

@simonschaufi
Copy link
Contributor

The following test case currently is not possible as the boolean parser either accepts strings OR variables but not both.

['\'{foo}\' == \'{bar}\'', true, ['foo' => 'a', 'bar' => 'a']],

I would expect this to be true. A workaround is to assign the string to a variable before with the f:variable-ViewHelper and then use the new created variable for comparison.

@s2b
Copy link
Contributor

s2b commented Aug 11, 2024

To clarify, this would be a use case for this (string concatenation within condition):

['{foo} == \'{bar} {baz}\'', true, ['foo' => 'a b', 'bar' => 'a', 'baz' => 'b']],

And I can confirm that this currently does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants