gjorde så här istället
<%
if recset("Upptagen") = true then
status = "Upptagen"
elseif recset("Borta") = true then
status = "Borta"
elseif recset("Upptagen") = false and recset("Borta") = false and recset("status") = "Online" then
status = "Online"
elseif recset("Upptagen") = false and recset("Borta") = false and recset("status") = "Offline" then
status = "Offline"
end if
%>
Såhär borde du kunna göra om recset("status") alltid innehåller ett värd, Online/Offline
<%
if recset("Upptagen") = true then
status = "Upptagen"
elseif recset("Borta") = true then
status = "Borta"
else
status = recset("status")
end if
%>
Annars kanske så här, iofs ingen förbättring kanske...
<%
if recset("Upptagen") = true then
status = "Upptagen"
elseif recset("Borta") = true then
status = "Borta"
else
If recset("status") = "Online" then
status = "Online"
elseif recset("status") = "Offline" then
status = "Offline"
end if
end if
%>
136 ms totalt · 3 externa anrop · v20260731065814-full.25f56b17