"Whether or Not" in Reported Questions
When you want to report a yes/no question or express uncertainty about two alternative outcomes (e.g., "I don't know whether it works or not"), Farsi uses the phrase که آیا (whether) paired with یا نه (or not).
To build this structure, introduce the reported clause with که آیا, and place یا نه at the very end of that clause.
| I am checking whether the developers debugged the module or not. | دارم چک میکنم که آیا توسعهدهندگان ماژول را خطایابی کردند یا نه.dâram chek mikonam ke âyâ towse'e-dahandegân mâzhul râ khatâyâbi kardand yâ na. |
| We do not know whether the script opens the plugin or not. | ما نمیدانیم که آیا اسکریپت افزونه را باز میکند یا نه.mâ nemidânim ke âyâ eskript afzune râ bâz mikonad yâ na. |
| We are testing whether the code compiles correctly or not. | ما داریم تست میکنیم که آیا کد درست کامپایل میشود یا نه.mâ dârim test mikonim ke âyâ kod dorost kâmpâyl mishavad yâ na |
| The programmer does not know whether the script gives output or not. | برنامهنویس نمیداند که آیا اسکریپت خروجی میدهد یا نه.barnâme-nevis nemidânad ke âyâ eskript khoruji midahad yâ na. |
The Formal Alternative: یا خیر
In professional, technical, or written environments—such as when discussing software, debugging, or documentation—you will often see a more formal word for "no".
| no (formal) | خیرkheyr |
To make your reported question sound more elevated or formal, simply replace یا نه with یا خیر at the end of the sentence. The meaning remains exactly the same.
| They asked whether the function returns this variable or not. | آنها پرسیدند که آیا تابع این متغیر را برمیگرداند یا خیر.ânhâ porsidand ke âyâ tâbe' in moteghayyer râ bar-migardânad yâ kheyr. |
| Check whether the new module compiles or not. | چک کنید که آیا ماژول جدید کامپایل میشود یا خیر.chek konid ke âyâ mâzhul jadid kâmpâyl mishavad yâ kheyr. |
| You do not know whether the output has a variable or not. | نمیدانید که آیا خروجی متغیر دارد یا خیر.nemidânid ke âyâ khoruji moteghayyer dârad yâ kheyr. |
Your questions are stored by us to improve Elon.io