Not doing well today! Can anyone show me a neater way of doing this:
if PlantType <> "" then
if PlantType = 6 then
CatagoryTitle = "Cranes"
elseif PlantType = 7 then
CatagoryTitle = "Excavators"
elseif PlantType = 8 then
CatagoryTitle = "Dumpers"
elseif PlantType = 9 then
CatagoryTitle = "Telehandlers"
elseif PlantType = 10 then
CatagoryTitle = "Compressors"
elseif PlantType = 11 then
CatagoryTitle = "Compressors"
elseif PlantType = 12 then
CatagoryTitle = "Compressors"
elseif PlantType = 13 then
CatagoryTitle = "Compressors"
end if
Maybe with a loop or some thing? Thanks.
if PlantType <> "" then
if PlantType = 6 then
CatagoryTitle = "Cranes"
elseif PlantType = 7 then
CatagoryTitle = "Excavators"
elseif PlantType = 8 then
CatagoryTitle = "Dumpers"
elseif PlantType = 9 then
CatagoryTitle = "Telehandlers"
elseif PlantType = 10 then
CatagoryTitle = "Compressors"
elseif PlantType = 11 then
CatagoryTitle = "Compressors"
elseif PlantType = 12 then
CatagoryTitle = "Compressors"
elseif PlantType = 13 then
CatagoryTitle = "Compressors"
end if
Maybe with a loop or some thing? Thanks.