hey i looking function for damage

example
if damage >= 50 then
setsettins....
else
setsettings...
end

anyone know this function? im looking it in sirimate library and other and nothing...