I have a trouble with my calculator

Can anyone help me?

when I click on equals it happens. Calculadora_copy (1).aia (64.4 KB)

Welcome. It is better to show the relevant blocks of your project so that we can help you.

1 Like

try to understand the error message…
you are using the multiply block, your first argument is 5 and the second is empty string
to be able to multiplicate, you should use 2 numeric values… an empty string will not work…

Taifun

2 Likes

Some prints.

Your global b variable remains empty when you click equals while performing multiplication that’s why this error is getting.

@erogi Are you sure it was my post that solved it?
I think not.
Was it the response of @The_K_Studio or @Taifun ?

before doing the calculation you have to check, if the data a and b is valid for example like this

if is empty a
then display a message "please enter a value for a"
elseif is empty b
then display a message "please enter a value for b"
else do the calculation

Taifun

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.