Hey in google excel when i use this statement it works

=IF(D5="win", "3", IF(D5="draw", "1", IF(D5="lose", "0", "")))

but i want to use it with a value for example

=IF(D5="3", "3", IF(D5="2", "1", IF(D5="6", "8", "")))

but when i use this it wont work, any ideas why not / a fix?