CASE WHEN {custom_field1} = 'T' OR {custom_field2} = 'T' OR {custom_field3} = 'T' OR {custom_field4} = 'T' THEN '1' ELSE '0' END