Conditional operations not allowed in function transform

I am using the new version of the gui. When I create a transform, the function transform gets created. I need to do a conditional operation in this function, however, if is not allowed and neither is ?:. How can I do a conditional operation in this function.

Hello,
probably problem is somewhere else then in conditional operations. Maybe you have mapping there and the mapping have to be last operation. In such case you need to create separate function for mapping and use it in conditional statement.

Yes, I was trying to do the conditional operation in the mapping section. I was able to overcome this by using variables and then doing the conditional operations prior to the mapping.