4MULTIPLICATION STATION: MAKING DECISIONS WITH CODE
In programming, you can use three structures to control the flow of a program: sequence, selection, and repetition. With the sequence structure, which is the default and simplest of the three options, code is executed in order, line by line. So far you’ve been using the sequence structure to create apps.
Unlike the sequence structure, the selection or conditional structure enables an app to make decisions by testing for a condition with a Boolean expression. A Boolean expression evaluates to a Boolean value, using relational or comparison operators like =, ≤, and ≥, to test the conditions. Because ...
Get Learn to Program with App Inventor now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.