The ifc function (character version, ifn numeric) is the built-in if function in SAS. This in SAS will be:
myString = cat("some words ",ifc(dead=1,'t','f')," some more words");
(functions of the cat family, such as cat, catx, etc., are more often used than the || operator in SAS).
Joe
source share