Simon Wisselink
Simon Wisselink
Seems related to https://github.com/smarty-php/smarty/issues/447 May be tricky to 'fix' as this might mean unwanted changes for others.
It was meant as a note to myself, no worries. Can you figure out what change/version introduced it?
The problem seems to be identical as/related to #827 and #555, both caused by a fix in 2017/2018.
This could be extended to strings as well: `{if 'im' in $name}..{/if}`
@scottchiefbaker yes
It seems Smarty v5 also supports in_array as a function. (implemented as FunctionHandler.) This is undocumented.
Wow, this is funny. From the changelog in 2009: `- added {if 'expression' is in 'array'} syntax` This is undocumented, and we do not have `{if 'expression' is not in...
Excellent point. I guess we should? Maybe ask the community how they feel about this.
@ampmonteiro I agree. And yes, please create a different issue for this, that will be helpful.
Closed because of inactivity.