Dominiq Martinez1,949 Points
what does it mean to compare using the equality operand and setting it equal to a constant. How can you compare in a con
These instructions lead me to code out "let isPerfectMultiple = (result == 0)
// Enter your code below let value = 200 let divisor = 5 let someOperation = 20 + 400 % 10 / 2 - 15 let anotherOperation = 52 * 27 % 200 / 2 + 5 // Task 1 - Enter your code below // Task 2 - Enter your code below let result = value % divisor let isPerfectMultiple result== 0
Wouter WillebrandsiOS Development with Swift Techdegree Graduate 13,121 Points
The equality operator == is used to check wether the value on the left side is equal to the value on the right side. If it is it returns true otherwise it returns false. In this case:
let isPerfectMultiple = true
However for this specific case:
let isPerfectMultiple = result == 1
Would return false.
You can read more about operands here
I hope this answers your question. Happy coding!