Control Statments

Ternary Conditional

For a simple control statement where you are setting a variable the ternary conditional might be useful. For example
let x = (y == z) ? 10 : 20
If y equals z then x is 10 otherwise x is 20

Touch Interaction

Display Alert


Index


Comments, Corrections, Suggestions: David Bourne (david@boomer.org)
My iOS and tvOS Apps and iBooks