My IF..ELSE block fails at BEGIN. I can understand how my expression is not boolean in nature, but what is causing this failure?
IF (SUBSTRING(@PARIDIN,1,1) = 'P'
BEGIN
SET @PARIDTEMP = SUBSTRING(LTRIM(RTRIM(@PARIDIN)),2,6))
END
BEGIN
ELSE SET @PARIDTEMP = @PARIDIN
END