added conditional operation ('q' is equal)