ELSE if {@Available} <{INLOC.Minimumstockqty}
then color(250,0,0)
What are you saying here? it looks like you havent assigned this case a value.
I would just say:
(IF {INMAST.Commoditykey} ="S" then color(0,0,250) ELSE
IF {INMAST.Commoditykey} ="RM,JS,LA,FD" then color (0,145,27) Else True