How to put multiple or,=,and,... in the one If function.
Example
If labeltext1=A or B or C
then labeltext2=ok
In the logic function =,and,or......i have only one field and no more.
How to put multiple or,=,and,... in the one If function.
Example
If labeltext1=A or B or C
then labeltext2=ok
In the logic function =,and,or......i have only one field and no more.
You could put A,B,C in a little list and test is LabelText in list
Alternatively,
If labeltext1=A or
labeltext1= B or
labeltext1= C
using the **or ** block's blue [mutator](https://appinventor.mit.edu/explore/ai2/support/concepts/mutators) button to add sockets.
Yet another alternative:
if labeltext = A then
...
elseif labeltext = B then
...
elseif labeltext=c then
...
if you want to handle the three options differently. Use the if/then blue mutator to add extra branches as needed.
Use the "or" block, it's in the logic block drawer.
I made it only with else if
But I can not do it with list or with or block
You can write an example block code?
I wrote the following with a list but it does not work
How to you write
?
I try but I can not. Only the following I managed to write
What am I doing wrong?
Thank you very match
Thank you very much. I had not seen input x
and how exactly will I use them? Can you write a small example?
thank you all!!!!!!!!!!!!!!!!!!!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.