Conditional if not working as expected

Hello,

I am attempting to add a tag to certain lines imported from a CSV file, depending on "10" being present in the "state_id" field. I am not getting any error messages but the output is creating two indexes with all data from the CSV, not just the data from those that should be tagged.

I am very new to this so any input would be great!

Thanks!

Try without quotes on field filter:

if [state_id] == "10" { ... }
2 Likes