how to insert 'error handler' via pendant?

Mikbaek DK
edited February 22 in RAPID Programming
Hi. I'm new to robot-programming, but I did some simple programs to load/unload a machine with parts. I need to figure out how to 'ignore' an error when doing a 'searchL' that doesn't hit any parts, and do the next search. I do programming directly on the pendant, and though I can understand that I need to create an 'error handler' it doesn't help much, because I can't find the function anywhere.  I wanted to just insert a 'try next' function, but how do I set up an error-handler? Thanks, and sorry for my basic knowledge ;)
pict. is of my simple code.