I have a situation where I need to verify three conditions:
sheet_exists = 1 recalc = 1 qty_total and new_qty_total are not equal
Everything works fine when I only use the first two arguments in the if statement:
if(sheet_exists === 1 && recalc === 'yes'){
//do something
}
However, when I attempt to include the third argument, the if statement fails to execute. I've attempted the following solutions:
if((sheet_exists === 1) && (recalc === 'yes') && (qty_total !== new_qty_total)){
//do something
}
As well as:
if(sheet_exists === 1 && recalc === 'yes' && (qty_total !== new_qty_total)){
//do something
}
And:
if(sheet_exists === 1 && recalc === 'yes' && qty_total !== new_qty_total){
//do something
}
I'm puzzled as to why my code isn't working as expected. Where could I be making a mistake?