<div dir="ltr"><div class="gmail_extra">Sven,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I missed this post when you made it a two days ago. If someone hasn't already asked, does your implementation support short circuit evaluation?</div><div class="gmail_extra"><br></div><div class="gmail_extra">For example:</div><div class="gmail_extra"><br></div><div class="gmail_extra">BasketCount := IfThen(ShoppingList <> nil, ShoppingList.Count, 0);</div><div class="gmail_extra"><br></div><div class="gmail_extra">Where evaluating ShoppingList.Count will cause an exception if ShoppingList is nil.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Also the reverse should short circuit as well:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">BasketCount := IfThen(ShoppingList = nil, 0, ShoppingList.Count);</div><div><br></div></div></div>