[$filter/Name = empty or $filter/Name = $listview/Name][$filter/City = empty or $filter/City = $listviewCity]
If someone is struggling with this here are two more exapmles that helped me right now for enumeration and contains():
for contains Contains:
[
(
$FilterHasName and contains(Name, $Filter/Name)
)
or $HasName = false()
]
for Enumeration:
[
(
$FIlterHasType and RequestType = $Filter/RequestType
)
or $HasType = false()
]
$HasName is created as a new boolean inside the microflow with this expression:
length(trim($Filter/Name))> 0
$HasType is created as a new boolean inside the microflow using this expression:
$Filter/RequestType != empty
This will result in retrieving all if Name or Type is empty instead of retrieving nothing.