problem with function if

when i create a function f(x) = if(x;sin(x)/x;1)
for f(0) return divide by zero exception