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

String comparison with modifiers not working correctly in statements #6

Open
schoentoon opened this issue Jul 14, 2015 · 0 comments
Open

Comments

@schoentoon
Copy link
Contributor

String comparison when the variable is modified is not working correctly in if statements (in foreach statements this doesn't make sense for smart-tpl anyway). This prevents us from using constructions like
{if $var|tolower == \"test\"}true{else}false{/if}. The main issue here is that string is really 2 variables instead of one (char* and size_t). Another issue is the fact that a Filter is not a variable, therefore we can't just pass a variable pointer to some compare function and let that function deal with it instead.

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

1 participant