added gui parameter for or condition length