We are converting over from Velocity. I am trying to figure out how to replicate this "nested if" chunk of code. Also, if I have an object.field variable, do I need to first test if object is null then object.field is null?
Here is my old VM chunk:
#if(!$receiptInquiryResults || $receiptInquiryResults.empty)
#if($receiptInquirySearchForm.sku == '' && $receiptInquirySearchForm.upc == '')
<div id="nothingFound">No receipts for this month.</div> #else
<div id="nothingFound">No receipts for this SKU/UPC.</div> #end
Apparently this forum doesn't offer the ability to paste a code snippet elegantly like the other forums?