Loading tutorials
null means in Apex, where it shows up, and how to avoid the errors it causes.2 min readif and for statements in Apex. It covers where a variable can be used, and then the three collection types.2 min readif and switch statements, and run anonymous Apex in the Developer Console. It builds on the variable and type chapters.2 min readnull is, and how Strings and collections are typed. Comparison operators return a Boolean, and several of them behave differently in Apex than in Java.2 min readnull means "no value", and have used if statements and comparison operators such as == and <. Here you will combine Boolean conditions and see why the order of those conditions matters.2 min readnull behaves in Apex, and how if statements and comparison operators work. Three operators help you pick a value or avoid a null reference error without writing a full if block: the ternary operator, safe navigation (?.), and null c2 min read