Hi
I really really really am desperate to get some help on a custom event switcher code that I just cannot get right
I'm not new to CF, I'm not new to php... but this situation is absolutly not explainable in my head...
So let's start, the basics...
success or fail
if somethen then fail else success
this works fine:
even this works fine
But hey, don't you dare to use this 'caus it ignores the AND operator for some unexplainable dark reason I just can't see...
WHY WHY WHY?????
Is there any way to debug this? the debugger in the actions is showing variables and values and they are all correct, just the AND operator is busting my b****
At this point I am even willing to pay $100 USD to the one person that can fix this.
Spent hours and days to get the form right, i better wrote the code from scratch. At least that php code obeys written commands.
I really really really am desperate to get some help on a custom event switcher code that I just cannot get right
I'm not new to CF, I'm not new to php... but this situation is absolutly not explainable in my head...
So let's start, the basics...
success or fail
if somethen then fail else success
this works fine:
if $form->data['variable'] = value {
return fail;
} else {
return success;
}
even this works fine
if $form->data['somevariable1] == somevalue OR $form->data['someothervariable'] == somevalue {
return fail;
} else {
return success;
}
But hey, don't you dare to use this 'caus it ignores the AND operator for some unexplainable dark reason I just can't see...
if $form->data['somevariable1] == somevalue OR ($form->data['someothervariable'] == somevalue AND $form->data['someothervariable'] == somevalue ) {
return fail;
} else {
return success;
}
WHY WHY WHY?????
Is there any way to debug this? the debugger in the actions is showing variables and values and they are all correct, just the AND operator is busting my b****
At this point I am even willing to pay $100 USD to the one person that can fix this.
Spent hours and days to get the form right, i better wrote the code from scratch. At least that php code obeys written commands.