Respuesta de componente Web no encontrado

Buenos días, como puedo controlar si no encuentro respuesta a un dato buscado cuando uso el componente Web, estoy tratando de buscar un valor en google sheets, sé que ese valor no está y quiero que me devuelva como no encontrado y que no me devuelva el resultado como error por no ser encontrado.

How are you doing the search? with a script?

Estoy usando esto:

https://script.google.com/macros/s/AKfycbz7wMuxOgzFN_XXXXXXXXXXXXXXXXXXX/exec?accion=consultar&num=1234560

En este caso el codigo "1234560" no figura en mi BD google sheets, la idea es que cuando no encuentre un valor cualquiera este no debe mostrarse como un error, sino solo como no encontrado o ver la forma de como controlar cuando no se encuentre un valor en mi BD.

Muestra: ERROR DE EJECUCION
The operation <= cannot accept the arguments: , ["not found"], [15]
Note: You will not see another error reported for 5 seconds.

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun

If you ask for "not found", you had better test for "not found" before trying to do math.

Show your script....

Uploading: Bloques.PNG…

Muestra: ERROR DE EJECUCION
La operación <= no puede aceptar los argumentos: , ["not found"], [15]
Nota: No verá otro error reportado durante 5 segundos.

Muestra: ERROR DE EJECUCION
La operación <= no puede aceptar los argumentos: , ["not found"], [15]
Nota: No verá otro error reportado durante 5 segundos.

Pon un if en ObtuvoTexto para que si contenidoDeRespuesta contiene el error (o llega vacio) no ejecute el resto del código que tienes en ObtuvoTexto.

¿Has comprobado que recibes en contenidoDeRespuesta en ese caso?

Debug your blocks abnd show us the content of the response content and your global variable lista

Also somewhere else in your logic you are using the <= operation. . This is where the error occurs...one of your textboxes contains the value not found

Taifun

Gracias Ramon, coloqué un IF en el contenido de la respuesta para controlar el error. Asi pude resolver el problema.

Muchas gracias a todos por la disponibilidad.