Definitionپێناسە
A statement that runs different code depending on a . Most languages have if, if…else and an else-if chain; many also have switch (Python 3.10 and later has match).
کە بەپێی کۆدی جیاواز جێبەجێ دەکات. زۆربەی زمانەکان if، if…else و زنجیرەیەکی else-ifـیان هەیە؛ زۆریان switchـیشیان هەیە (Python لە وەشانی 3.10ـەوە matchـی هەیە).
Exampleنموونە
Like a road sign: if the road is closed, take the other way.
وەک تابلۆی ڕێگا: ئەگەر ڕێگاکە داخراو بوو، ڕێگاکەی تر بگرە.
Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
ڕستەی ئاڵۆز، ڕستە مەرجییەکە، ڕستە مەرجییەکان، ڕستەیەکی مەرجی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built from the notes' words ڕستە and مەرج; the notes call a statement with a condition a «ڕستەی ئاڵۆز» (complex statement).
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
How if, else and elseif choose a path: each one is drawn as a flowchart first and then written and run in MATLAB.
if، else و elseif چۆن ڕێگەیەک هەڵدەبژێرن: هەر یەکەیان سەرەتا وەک دەکێشرێت، پاشان لە MATLABـدا دەنووسرێت و جێبەجێ دەکرێت.
A full beginner lesson on if, else if and else, then switch and PHP 8's match expression, with examples.
وانەیەکی تەواو بۆ سەرەتاییەکان دەربارەی ، else if و else، پاشان و لە 8دا، بە نموونەوە.
A lesson in Kurdish (Sorani) on conditions: what they are, why programs need them, and how to write them in PHP.
وانەیەک بە کوردیی سۆرانی: چییە، بۆچی پێویستیان پێیەتی و چۆن لە دەینووسین.
Learn more inزیاتر فێربە لە
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- Making Decisions: if, elif, elseبڕیاردان:
if،elifوelse - Operatorsکارپێکەرەکان
- Loops: while, do...while, for, foreach, break and continueخولەکان: while و do...while و for و foreach و break و continue
- Logical Operators and Nested ifکارپێکەرە لۆجیکییەکان و ڕستەی ifـی ناوەکی
- Data typesجۆرەکانی دراوە
- Agent Programs, Pseudocode and Algorithm Analysisبەرنامەکانی ئەیجێنت، نیمچەکۆد و شیکارکردنی ئەلگۆریزم