Hello.
I’m struggling with getting the following thing to work.
I need to make a template using the new editor because it has some features that I need to make the design work. Additionally I need to port the show/hide logic for some blocks.
So for the old template editor the condition was like this :
person|lookup:'custom_prop'|lookup:0 != '<missing>'
The “custom_prop” is a property that I set on profile and it is a list. It is set by a script integrated with the api, and there’s some logic that inserts “<missing>” at position 0 in some cases.
Now this logic won’t work in the new editor - the block is displayed even though the 0 element of the “custom_prop” list is set to “<missing>”.
I’ve tried rewriting this in several ways :
not ‘<missing>’ in person.custom_prop
‘<missing>’ not in person.custom_prop
‘<missing>’ != person.custom_prop.0
{{ person|lookup:'custom_prop'|lookup:0 != '<missing>' }}
not '<missing>' in person|lookup:'custom_prop'
Nothing works. Could somebody please give me some hints on what the correct syntax would be in this case ? I’m using the preview feature of the new editor along with setting the correct profile to check this by the way.