How to get a special int?

Hi there JGO,

I was working yesterday and today on a small flaggscript. De borders of the flagg need to be darker then the inside flag. I have a special Colour-script to add colours. 0=dark colour, 5=lightest colour. So I say the inside of my flagg is yellow, 550 (RGB). but I want the outside a bit darker then I need to get from every number, 5 5 0, if it’s higher then 0. so 5 is higher then 0 and return it as 1, then you’ll get: 1 1 0. and finally to make the darker outside colour = 550-110 = 440. The part I have no idea how to do is the middle part(getting 110 from 550). I also don’t know what it is called, so I couldn’t search on google information or help.

Already thanks!
-RoseSlayer