Boolean

From Hack Wars Wiki

Jump to: navigation, search

A boolean is true or false. Boolean, as with other variables, are defined by naming the type, and then giving the variable a name. After the variable has been defined, it can either be initialised on the same line, or further on in the code.

Examples

boolean boolean_name = true;
boolean boolean_logic = (1 == 1);
boolean boolean_logic;
boolean_logic = (1 == 1);
boolean boolean_logic = (1 == 1);

if(boolean_logic)
     message(getSourceIP(), "True");
Personal tools