Ваш синтаксис неверен, если оператор не должен быть объявлен таким образом.
Попробуйте это:
if {?Pm-?dropdown_Barcodes} = "Prep" and ({JobOperations.jmoProcessID} in ("BOELE","BOEHY","BOPRA","BOPRS"))
then {JobOperations.jmoProcessID}
else
if {?Pm-?dropdown_Barcodes} = "Main" and not({JobOperations.jmoProcessID} in
("BOELE","BOEHY","BOPRA","BOPRS"))
then {JobOperations.jmoProcessID}
else
if {?Pm-?dropdown_Barcodes} = "All" then "All"
редактировать ---------------------------------------------- -------------------
if {?Pm-?dropdown_Barcodes} = "Prep" and ({JobOperations.jmoProcessID} in ("BOELE","BOEHY","BOPRA","BOPRS"))
then Formula = {JobOperations.jmoProcessID}
elseif {?Pm-?dropdown_Barcodes} = "Main" and not({JobOperations.jmoProcessID} in
("BOELE","BOEHY","BOPRA","BOPRS"))
then Formula ={JobOperations.jmoProcessID}
elseif {?Pm-?dropdown_Barcodes} = "All"
then Formula ="All"
end if