I have an instrestion question about boolean logiс in javascript.
I have a FOR circle and created a trigger event, which will store TRUE or FALSE for IF statement:
var trigger = [];
for (i = 0; i < 3; i++ ){
//Checking for empty fields
if(this.form.rows[i].fields[0].input.val() === '') {
if($(this.form.rows[i].row[0]).length){
bla bla bla
trigger.push(true)
}
else {
trigger.push(false);
}
}
So in the end I want to check each statement of array for boolean operator AND
if(trigger & ??? )
Any help friends ?
Based on one of your comments
Like this, for example: