...

View Full Version : returning function boolean



macleodjb
01-24-2008, 04:07 AM
Hi Guys,

I have a function that returns either true of false. How can i test if it's true?

I'm using this is_bool(validateform) but it doesn't seem to work.

validateform is my function.

What am i doing wrong?

oesxyl
01-24-2008, 04:28 AM
Hi Guys,

I have a function that returns either true of false. How can i test if it's true?

I'm using this is_bool(validateform) but it doesn't seem to work.

validateform is my function.

What am i doing wrong?



if(validateform(...)){
print "Wooow, is true";
}else{
print "hmmm, don't work";
}


do you use?



is_bool(validateform(.....));


best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum