I have a function called selType that returns either "mc" or "car"

Then in my datalist i would like to check if the function returns "mc" it should output pName, else pNameFI from my db.

I need something like this..

Code:
<%# if selType="mc","pName","pNameFI") %>
But this don't work.. I don't know how to achieve this.. Can anyone help me?