I have an include file with an variable(CompanyTest) set to true if needed. In the asp page(vbscript) there is a session variable with the name of the company of the user logged on. I'm trying to do something like this
if session("Company" & "Test" = true then
do something
end if
session("Company" & "Test" together is the name of the variable I set to true in the include file. I appears as thought the if statement is just testing if the string is true as opposed to the value of the varialble. How can I get this to work. Now I receive the error
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "CompanyOneTest"]'
if session("Company" & "Test" = true then
do something
end if
session("Company" & "Test" together is the name of the variable I set to true in the include file. I appears as thought the if statement is just testing if the string is true as opposed to the value of the varialble. How can I get this to work. Now I receive the error
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "CompanyOneTest"]'