More concise, and I would say ok, to use "fieldval = val and val.startswith(FIELDC)"

**Applies to multiple similar expressions in this file.***