simple if/else for paypal

prophoto

Active Member
On my 'eqm' site I need to have a simple if/then statement that allows people to skip paypal if they want to mail in a check. See my subscription form.

Statement is below, what am I doing wrong?
PHP:
if ((int) '{eqm3_sub___mailcheck}' == 1 ) {
  return "false"
}
else
{
  return "true"
}

Screen Shot 2014-01-15 at 4.05.03 PM.pngScreen Shot 2014-01-15 at 4.04.55 PM.png
 
hello

you should return false or true, not "false" or "true"
e.g.

PHP:
if ((int) '{eqm3_sub___mailcheck}' == 1 ) {
  return false;
}
else
{
  return true;
}
also ensure that there are semi-colons at the end of any line that is not a control statement.
 
Still not working...now it is fowarding to paypal if box is checked or not. Ideas? If you want to take a look its in the eqm site in the subscription form and I will be adding it to the place ad form too.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top