MrSwiss,MrSwiss wrote:-1 = TRUE -- 0 = FALSE (definition of FB-Boolean var.) as from version >= 1.04.0schooner wrote:What is the reasoning for the -1?
Yes, but you have not really answered the question, only restated the definition. I suspect the negative logic might have something to do with a desired FreeBasic testing syntax:
Code: Select all
if SSE then true 'SSE = -1
if NOT SSE then false 'SSE = 0