Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 1893

Javascript error expected ';' Not sure what I am doing wrong

$
0
0

I have a javascript file that states if a value matches then it should point to so and so. I am not sure where I should be putting ';' any suggestions on what I am doing wrong here? It is pointing to the first line where ADOU.value starts

Java
IfADOU.value="1"ThenoTSEnvironment("swm_ADOU")="Administrative""msgbox("OU=Administrative,OU=Workstations,DC=domain,DC=com" &oTSEnvironment ("swn_ADOU"))'Elself ADOU.value = "2" Then oTSEnvironment ("swm_ADOU") = "Developement" "msgboxOU="Developement,OU=Workstations,DC=domain,DC=com "&oTSEnvironment("swn_ADOU"))'ElselfADOU.value="3"ThenoTSEnvironment("swm_ADOU")="External""msgbox(OU="External,OU=Workstations,DC=domain,DC=com" &oTSEnvironment ("swn_ADOU"))'Elself ADOU.value = "4" Then oTSEnvironment ("swm_ADOU") = "IT" "msgbox(OU="IT,OU=Workstations,DC=domain,DC=com"&...

Viewing all articles
Browse latest Browse all 1893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>