Skip to content

Commit

Permalink
update build_condition
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Jul 9, 2024
1 parent fd69215 commit 006f34d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdal_ign_macro/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ def build_condition(key, values):
"""
build 'key==values[0] || key==values[1] ...'
"""
condition = ""
condition = "("
for v in values:
condition += key + "==" + str(v)
if v != values[-1]:
condition += " || "
condition += ")"
return condition

0 comments on commit 006f34d

Please sign in to comment.