In B4A when I write kvs.GetDefault("BooleanVariable", True) return True or False, but en B4i return 1 or 0.
Reading this thread, How do i to compare values?:
Reading this thread, How do i to compare values?:
How to correctly compare values? (get expected results and avoid crashes)
(This thread is a spin-off from https://www.b4x.com/android/forum/threads/1-1.117065/, which is a really interesting thread that I encourage people to read in full.) I mean, if the compiler sees a comparison where one side is an object and the other is not, and its safer to put it on the right...
www.b4x.com
B4X:
If kvs.GetDefault("BooleanVariable", True) then 'is it correct?
'or
If 1 = kvs.GetDefault("BooleanVariable", True) then