Answer
Check the exact casing of the record keyword in your condition — it needs to be lowercase record, not Record; a capitalized Record silently fails to work even though it looks like a harmless stylistic difference, so record.Cf_Some_Field != null (all-lowercase record) is the form that actually evaluates correctly.