A conditional is how we branch our logic into different paths. "If some value is true, then we want to proceed in this way. Otherwise, let's handle it in that way." As you can see, booleans and conditionals go hand-in-hand.
Homework: Continue tinkering with conditionals. Add a new boolean to your
task array, and use its value to branch off into two different paths within your HTML.
Published on Jul 7th, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.