Skip to content

luau map question #3089

Description

@ondohotola

Given

cat > a.csv <<EOF
No,Name,Minutes,Points
1,DNE (2),16,1
2,Eberhard Lisse,33,1
EOF
qsv luau map newpoints "if string.find(Name,'Eberhard Lisse') then return 0 else return Points end" a.csv

returns

No,Name,Minutes,Points,newpoints
1,DNE (2),16,1,1
2,Eberhard Lisse,33,1,0

which is what I expected

but

qsv luau map newpoints "if string.find(Name,'DNE (2)') then return 0 else return Points end" a.csv

returns

No,Name,Minutes,Points,newpoints
1,DNE (2),16,1,1
2,Eberhard Lisse,33,1,1

which is unexpected.

What am I doing wrong?

QSV 9.1.0 on Mac Tahoe 26.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions