GENERALLY the rule is:
Working it (K)now? slip (K)nit
Working the (slipped from)Previous row? slip Purl
SSK (slip, slip and Knit (now) slip knit wise
slip one (and in next row use this Previously slipped stitch somehow? slip it purl wise.
you can make up your own memory aide (above is the one that works for me!)