You need to wrap the count command in parentheses so that it is evaluated first:
if (count :L) = 0 [stop]
It also wouldn't hurt to add additional parentheses around the entire test and also add the empty brackets for the else clause (if required by your logo interpreter):
if ((count :L) = 0) [stop] []
Bear in mind, stop is used to exit a procedure. If all you want to do is exit out of a loop, you may want to look at other loop structures like a for, while or until loop.
You need to wrap the count command in parentheses so that it is evaluated first:
It also wouldn't hurt to add additional parentheses around the entire test and also add the empty brackets for the else clause (if required by your logo interpreter):
Bear in mind,
stopis used to exit a procedure. If all you want to do is exit out of a loop, you may want to look at other loop structures like afor,whileoruntilloop.