Apr 26, 2010 at 5:50pm
Add a boolean parameter to the method/function and pass a boolean argument to it when it is called.
Here's a simplification:
1 2 3 4 5 6
|
void f( bool b ) {
if( b ) { /*...*/ }
}
//...
bool bb = true;
f( bb );
|
Last edited on Apr 26, 2010 at 5:53pm
Apr 26, 2010 at 7:04pm
Thanks that works.....
So simple - yet it had me perplexed for some bit of time