Logic for Boolean variables in ASP

0

Good morning, I maintain a huge system, we have two servers, one test and one production, I happen to have the following problem:

On the test server, this condition does not return true (true), but does not return production.

if Variavel Then Response.Write "OK" end if 

However, if I do so

if Variavel = True then Response.Write "OK" end if 

Then it returns true on both servers, if I just change, put True on all, would solve, but there are many variables in many places, and change everything would be impractical, I would like to know if you have configure, within the file itself .asp something that forces the return to true even if I do not specify in the if.

    
asked by anonymous 18.10.2018 / 15:15

1 answer

1

It may be happening from one server being in PT / BR and another in EN. One way is to add the configuration in Global.asa, so that both are in the same format:

<script language="VBScript" runat="Server">
   Sub Session_OnStart()
      'formato padrão PT/BR
       Session.LCID = 1046
   End Sub

   Sub Session_OnEnd
   End Sub
</script>
    
22.10.2018 / 14:48