Are you trying to do this with Simstat or QDA Miner. With Simstat,
this is something that can be done easily, but not in QDA Miner, We
are planning to add a feature to assign some values conditionally in
QDA Miner but for now, you either have to do this manually, or use
Simstat. The conditional transformation allows you to do such a thing.