modified behaviour for AndIf, AndIfNot, OrIf and OrIfNot