Skip to Content
UX Design for Mobile
book

UX Design for Mobile

by Pau Giner, Pablo Perea
July 2017
Intermediate to advanced
354 pages
9h 58m
English
Packt Publishing
Content preview from UX Design for Mobile

Loops and conditional structures

Conditional structures and loops will allow you to add advanced logic to your code. A conditional structure delimits a block of code that is executed only if a condition is met. Its syntax includes the reserved word if, and may include an alternative code block, for which we will use the reserved word else; that will be executed when the main condition is not met.:

x = 4if x>2    print "x value is bigger than two"else    print "x value is not bigger than two"
Download prototype from Asset_A6462_A08_A03_Example_Conditional.framer.zip.

As a result of the preceding code, you will see the string of the first print instruction by the print console as the value of "x is bigger than two".

Loops help us write blocks of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical UX Design

Practical UX Design

Scott Faranello
Designing UX: Forms

Designing UX: Forms

Jessica Enders
User Experience Design

User Experience Design

Satyam Kantamneni

Publisher Resources

ISBN: 9781787283428Supplemental Content