True, false, and null
An empty number in Apex is null, not 0.
Your task
Add a 10-point webinar bonus to a Lead score, then mark the Lead hot when the boosted score is 80 or more and the Lead is still open.
Integer leadScore = null;
Boolean isClosed = false;
// Case A: no score yet, Lead open
// Case B: score 75, Lead open
leadScore = 75;
// Case C: same Lead, now closed
isClosed = true;Requirements
leadScoreshould be defaulted with== null ? :or??- Hot should be a
&&of the score test and!isClosed Null boosted: 10should be printedNull hot: falseshould be printedOpen boosted: 85should be printedOpen hot: trueshould be printedClosed hot: falseshould be printed