Error message bad arguments to >

Hola quisiera preguntar por un error ya que al intentar emular la app me dio el reporte de bad argument y no estoy seguro en que me equivoque



si es que falta algo que no apareció en las imágenes pueden pedírmelas ya que se me dificulta encontrar la solución

Please provide the complete error message and let us know, when exactly the error occurs

Also this is an international community... therefore please switch the language to English before taking screenshots of your blocks

Taifun

1 Like

it looks like you found the issue yourself...
Taifun
PS: I will unlist this thread, because without solution it will not be helpful for others

Sorry, I didn't find it, I'm new to this community but I wanted to ask if I'll have to resend the message.

I willl remove the solution marker and list the thread again
you might want to answer the question and provide English screenshots...

Taifun

ok the problem happens when I am loading my app when I go from levels to a level it shows bad argument and if I want to emulate it it doesn't allow it

It has something to do with your list of buttons.

Export the Project and post the .aia file here for more details.

This

Screenshot_20240523_173357_DuckDuckGo

is the > operation

You are comparing a list of button components with 0

Try to find the block, which causes the error

Taifun

I'll see if it works for me, thank you very much

Hello again, I want to say that I already found the source of the error but I would like to ask for advice on what I could replace it with.

Use Do it to debug your blocks and show us the So it results

use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

and ask yourself: how can the variable cantidad de preguntas suddenly be a list of button components?

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

You are setting to "cantidad_de_preguntas" the buttons list...maybe you want to set the list to other variable.