Jump to content

Help with if query


datoshway

Recommended Posts

I would guess by the name $boolType is a boolean (true / false)

 

Therefore $boolType does not equal 1, its true

 

if($boolType == true){
echo 'True';
}else{
echo 'its false';
}

// ANOTHER OPTION, the same as above
// The default of below is to check if something is true
if($boolType){
echo 'True';
}else{
echo 'false';
}

Link to comment
https://forums.phpfreaks.com/topic/251289-help-with-if-query/#findComment-1288888
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.