Menu

#39 find output nothing when no match

v0.3
open
nobody
FRAMEWORK (15)
5
2006-09-24
2006-09-24
No

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

Discussion


Log in to post a comment.