I am having trouble trying to do a if statement that checks if the bool value returned from salesforce SOAP API is true or false? when I var_dump()
the variable it returns bool(true)
that is because the checkbox is ticked in salesforce.
If I untick the checkbox in salesforce it will return bool(false)
which is correct. my issue is using php IF statement to determine if the value is true or false.
So what I am doing is storing the value in a variable after grabbing it so from SOQL, using var_dump to see if value exists, which it does... then using the following condition, but it is not working.
<?php if (isset($_POST['id']) && $submissionStatus === false) { ?>
What i need to do is check is the variable boolean value is false, if it is... display certain content, but the value is currently true and this if statement is still working and displaying my content... if I remove the POST id value the if statement fails, so I know the submissionStatus variable is the problem.
Current var_dump($submissionStatus); when the checkbox is unchecked in salesforce.
If its false then it should display my content so how can I check if it is false?
This is funny, so this works if i statically set a variable with a value of false, but when I store the salesforce bool value in a variable and use that it does not work...
<?php
$status = false;
var_dump($status);
if (isset($_POST['oppId']) && $status === false) {
?>