Hello,
I have two files test.hws and test2.hws.
test.hws looks like this:
Code: Select all
myTable = { [ "a" ] = True }
@INCLUDE "test2.hws"
p_Testing ()
Code: Select all
Function p_Testing ()
Local la = myTable [ "a" ]
If la = True
DebugPrint ( "True" )
Else
DebugPrint ( "False" )
EndIf
EndFunction
If I change the line to this
If la = "True"
Hollywood stops complaining about it.
There are several boolean variables in my "bigger" program and some of the If statements work with True and some with "True".
It looks to me that sometimes a statement like myvar = True sets myvar as "True" and not as True. Is there a way to make sure that a variable really gets a boolean value?
-- Janne janne.email-address-removed@nospam.com