bool question
is it possible to have bools in the function brackets?
public function(id, bool:etc ) { } and then you can just do this in other functions.. function(id, true) or function(id, false) if so how to i make up the function with the bool ? EDIT: ok figured one way out PHP Code:
|
Re: bool question
Efficienty is not the question here, code is correct.
But, depending on your need, if you don't choose the correct way to do something, code won't be efficient, but without concrete example, nobody can say ;) |
Re: bool question
Since a bool can only be true or false, why use are you using a switch instead of an if?
|
Re: bool question
+1
|
Re: bool question
@ conner. Thanks
@ YamiKaitou. so when using a bool. having if is less code so it's better? just trying out new ways of doing things. And now I know my code was okay I can now work out what to use with it. |
Re: bool question
Quote:
|
Re: bool question
Quote:
|
Re: bool question
Quote:
|
Re: bool question
Quote:
|
Re: bool question
just to clarify each time this is called it will change true or false?
hmm = !hmm |
| All times are GMT -4. The time now is 10:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.