Why are these two nodes not returning the list of rooms?
In the code block, If I put something else than “x”, it works… it will return “y”.
Thanks
Gio
Why are these two nodes not returning the list of rooms?
In the code block, If I put something else than “x”, it works… it will return “y”.
Thanks
Gio
In the first case, use ScopeIf node instead. In the case of Code Block, I think the logic is exactly the same used by If node (see this).
ScopeIf can be problematic out side of custom nodes. Collecting both lists into a single list and using a get item at index method to pull the desired result may be more stable. This is one such example:
lstAll = [lst1,lst2];
List.Count(lst1) >= 1 ?
lstAll[1] :
lstAll[0];