You want to use CASE statements here. These are used for exactly this, different expressions depending on conditionals (they can't be used for conditional Cypher execution, that's a different thing).
... // assume someValue is an integer in scope
CREATE
(n:Node)
SET
n.myprop = CASE somevalue WHEN 0 THEN 'abc' WHEN 5 THEN 'abc6' END
```
From the linked docs you can also see that it supports ELSE for a fallback, as well as a slightly more complex version where multiple separate boolean conditionals can be evaluated instead of just doing a single conditional evaluation like above.