Select a category and display random list item

Hey, what I am aiming to do is for you to be able to select categories, and then you press a button which randomly picks a word or phrase and displays it for you. I am not an experienced coder, so I am unsure as to why this isn't working. Help?
Yes when testing I made sure to select "Natural" on the landscape dropdown
(Landscape= last text box on display page.)

1 Like

Welcome to the community @CC52!
Try like this:
blocks (3)

Use Logic compare logic_compare instead of Math compare math_compare

Also, use component_set_get (2) instead of component_set_get (3) .

1 Like

It works! thanks so much ^^

according to the documentation http://ai2.appinventor.mit.edu/reference/blocks/logic.html#=

Acts exactly the same as the = block found in Math

Taifun


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

1 Like

image

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