Why not? ```var x = someCondition ? record.Type.SA...
# suitescript
e
Why not?
Copy code
var x = someCondition ? record.Type.SALES_ORDER : record.Type.CASH_SALE;
var y = record.load({type: x, id: 12345});
d
are you debug and see the value of X?