Download this file
FUNCTION func:DINT; IF 1 > 5 func := (1); RETURN; END_IF IF 1 < 5 func := (2); RETURN; END_IF IF 1 = 5 func := (3); RETURN; ELSE func := (4); RETURN; END_IF