A follow-up question;
Consider this useful custom filter operator;
\function list.contains(list value then:"yes" else) [enlist<list>match<value>then<then>else<else>]
Using a $macrocall $name="list.contains"
or <$transclude $variable="list.contains"
- you can give the list as a list, field variable or empty
- you can give a value to test if it is in the list.
- By default it returns “then”, which is yes, or any other value given
- If not found nothing is returned unless you set the else parameter.
All well and good. Now similar to the Original topic “currentValue for function”,
what if I wanted the default value to be returned equal to the value given?
In the above I could provide the same value to the value=“name” and then=“name” but is there any way I can reference the “current title” when it passes the test inside my custom operator?
- I want to keep it as a function not a procedure. So cant use the parameters widget to compute the default value for then.
Is this the same as the “missing currentValue” ?