[Resolved] elseif statement

I cant get this to work, I know how it logically should be, but for some reason( after a thousand tests ) cant still get it, can anyone help me out?

	while true do
	Citizen.Wait(0)
		local ped = GetPlayerPed(-1)
		local thisentity = whatever(ped)
		local status = whatever(thisentity)
		if thisentity and status < 50 then
		ShowNotification("~r~Stuff is starting to look bad, be cautious")
		elseif thisentity and status < 30 then
		ShowNotification("~r~Take action before its too late")
		elseif thisentity and status < 10 then
		ShowNotification("~r~There is no way back now")
		end
	end
end)

Notice that the code pasted is just an example an not the real code, but you get my idea, the elseif statement does not however though, any idea what Im doing wrong here?

Highly depends on what whatever(thisentity) is.

Is it calling a float? If so it should be 50.0 / 30.0 / 10.0

Also, did you try to

Citizen.Trace("".. status .."") 

To see what the actual status returns/is?

The first line launches as intended:

ShowNotification("~r~Stuff is starting to look bad, be cautious")

but then it stops there, do I need to do another check for the status though? if so how? thats where Im stuck