SC2Mapster.com
Maps
Assets
Teams
Authors
Forums
Wiki
Paste
Sign in
Register new account
SC2Mapster.com Wiki
SC2 API
/
Types
/
bool
r2
Source
Markup:
##bool## represents a boolean value with only two possible values: ##true## and ##false##. Boolean values are typically used in conditional statements and all comparison operators (e.g. ##<=##, ##>##, ##==##) return ##bool##. <<code galaxy>> bool value = true; if (value) { // this will be performed DoSomething(); } else { // this will not be performed DoSomethingElse(); } value = false; if (value) { // this not will be performed DoSomething(); } else { // this will be performed DoSomethingElse(); } value = !(false); // same as true value = !(true); // same as false value = true && true; // true value = true && false; // false value = false && true; // false value = false && false; // false value = true || true; // true value = true || false; // true value = false || true; // true value = false || false; // false <</code>>
Markup Type:
The type of markup for this entry.
Click here for details
.
BBCode
Markdown
Plain Text
WikiCreole