find output nothing when no match
Status: Beta
Brought to you by:
llaske
FIND fail when the template don't find a match.
Example:
to MYFIND :arg
if :arg=1 [output "true]
output "false
end
show (find "myfind [2 4 3 0])
throw an error: "Parameter 1 did'nt output to show"
because find should output [] but did'nt output
anything.
But this works:
show (find "myfind [2 1 3 0])
1