Closed DMKun closed 2 years ago
Hi, do you want to filter on multiple conditions? You can use |
and &
for that.
my_globals.shapes.filter((loop_var.obj_type == 'rect') | (loop_var.obj_type == 'path'))
That means all shapes that are rects or paths.
The and (&
) works identically.
It's work, thanks.
How to merge multiple filter.