That should give you a syntax error but its basically just going to return a iprintLn depending if the variable is true or false.I've seen functions like this and don't really know what they mean:
Code:function test(bool = true) { if(bool == true) { self iPrintLn("True"); } else { self iPrintLn("False"); } }
It is Black Ops III. Syntax is valid. Stand down soldierThat should give you a syntax error but its basically just going to return a iprintLn depending if the variable is true or false.
Im sowwy.. you gotta remember im not a kewl dude who mods bo3It is Black Ops III. Syntax is valid. Stand down soldier
@Aspire This exactly describe what it does Good job @Cxwh!I think it would be the same as
SoCode:function test(bool) { if(!isDefined(bool)) bool = true; if(bool) self iPrintLn("True"); else self iPrint("False"); }
Code:function test(bool = true) //makes bool true if bool is undefined