Do you mean “if the value is 1 then use A, otherwise use B”? In that case you want:
if this_foreign_key == '1' then 'A' else 'B' end
Do you mean “if the value is 1 then use A, otherwise use B”? In that case you want:
if this_foreign_key == '1' then 'A' else 'B' end