Both must be true
Combine two questions into one decision.
What to do
Someone gets in only if they are 18 or over AND they have a ticket.
age is 20 and hasTicket is true, so show Come in. If either part fails, show Sorry.
Write it as one decision, not two separate ones.
Your code Read-only reference Pseudocode
Output
Press Run to see what your code does.
Stuck on the idea rather than the typing? The lesson behind this set is Conditions & Branching on Learn to Write Code.