Boolean

From Bohemia Interactive Community
Revision as of 23:57, 12 July 2016 by Mikero (talk | contribs)
Jump to navigation Jump to search

Boolean Type

Boolean (true or false).

If left unmolested true and false are "strings";

In the scripting language (sqf/sqs) this is fine. The variable is compared as a string "true" or "false" or "bananas"

in config.cpp you need to first declare them for what they really are

  1. define true 1
  2. define false 0