Skip to main content

fuzzy.LookupMatch

Fuzzy VLOOKUP: find best match in searchCol, return value from returnCol. Optional threshold: returns nil if best score is below it

fuzzy.LookupMatch(target: string, data: [][]any, searchCol: int, returnCol: int, threshold?: float64) -> any

Arguments

NameType
targetstring
data[][]any
searchColint
returnColint
threshold?float64

Example

{{ fuzzy.LookupMatch("apple", tableData, 0, 1, 0.7) }}

Returns (value from returnCol of best matching row).