Rank: Newbie
Groups: Registered
Joined: 10/8/2022(UTC) Posts: 4 Location: Moline, IL
|
Thank you everyone for reading my post! I really appreciate the simple input, exactly what I needed. For that other issue I was trying to figure out, I came up with this to get the 2 Values combined and show the correct layer. When I loop this script, the next data source record applies the correct layer instantly. Thanks again! Code:dim Cand1Party as String
dim Cand2Party as String
dim can1bcan2r as String
dim can1rcan2b as String
dim can1rcan2r as String
dim can1bcan2b as String
If Input.Find("results").Text("Cand1Party.Text") & Input.Find("results").Text("Cand2Party.Text") = "RR" then
API.Function("LayerOff",Input:=can1bcan2r,value:=(2))
API.Function("LayerOff",Input:=can1rcan2b,value:=(1))
API.Function("LayerOn",Input:=can1rcan2r,value:=(3))
API.Function("LayerOff",Input:=can1bcan2b,value:=(4))
Elseif Input.Find("results").Text("Cand1Party.Text") & Input.Find("results").Text("Cand2Party.Text") = "DD" then
API.Function("LayerOff",Input:=can1rcan2b,value:=(1))
API.Function("LayerOff",Input:=can1bcan2r,value:=(2))
API.Function("LayerOff",Input:=can1rcan2r,value:=(3))
API.Function("LayerOn",Input:=can1bcan2b,value:=(4))
Elseif Input.Find("results").Text("Cand1Party.Text") = "R" then
API.Function("LayerOn",Input:=can1rcan2b,value:=(1))
API.Function("LayerOff",Input:=can1bcan2r,value:=(2))
API.Function("LayerOff",Input:=can1rcan2r,value:=(3))
API.Function("Layeroff",Input:=can1bcan2b,value:=(4))
Elseif Input.Find("results").Text("Cand1Party.Text") = "D" then
API.Function("LayerOff",Input:=can1rcan2b,value:=(1))
API.Function("LayerOn",Input:=can1bcan2r,value:=(2))
API.Function("LayerOff",Input:=can1rcan2r,value:=(3))
API.Function("Layeroff",Input:=can1bcan2b,value:=(4))
Else
API.Function("LayerOff",Input:=can1rcan2b,value:=(1))
API.Function("LayerOff",Input:=can1bcan2r,value:=(2))
API.Function("LayerOff",Input:=can1rcan2r,value:=(3))
API.Function("Layeroff",Input:=can1bcan2b,value:=(4))
end if
|