I need someone with good knowledge of the English language to take a look at the sentence below for (1). I need to first determine grammatically what is wrong with the sentence. The statement "unless the user pressed enter or clicked a navigation arrow button" only appears to be linked to the portion of the sentence "refresh the page"; when in fact it should apply to all of the text which is bolded and joined by the and statement.
I rewrote the sentence as (2) and I hope that is correct. But really what I need to do is to determine grammatically what is wrong with (1). So can a grammar expert critique (1) for me, and tell me what is wrong with the sentence?
(1)
Check whether the rows per page value is changed when focus on the control is lost and refresh the page unless the user pressed enter or clicked a navigation arrow button..
(2)
When the focus of the control has changed then check whether the rows per page value has also changed. If the page value has changed then refresh the page, except when the user presses enter or has clicked the navigation arrow button.
I would say that #1 is at best ambiguous. The English language is not good at expressing such detailed logic. When I became a programmer many years ago, we used flow-charts.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
I would say that #1 is at best ambiguous.
The English language is not good at expressing such detailed logic. When I became a programmer many years ago, we used flow-charts. I don't know if anyone still does.
If you really want to try to express this clearly in sentences, I'd suggest something like this.
Check whether the focus of the control has changed. If it hasn't, do