Code block
بلۆکی کۆد
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
A group of statements that belong together, for example the body of an if, a loop or a function. PHP, Java and C# put a block between curly braces { }; Python marks it with the same after a line that ends with :.
کۆمەڵێک کە پێکەوە دەڕۆن، بۆ نموونە جەستەی if، یان . PHP، Java و C# بلۆک دەخەنە نێوان کەوانەی { }؛ Python بە هەمان دوای دێڕێک کە بە : کۆتایی دێت دیاری دەکات.
Exampleنموونە
The two echo statements form one block that runs only when the condition is true.
هەردوو ڕستەی echo یەک بلۆکن و تەنها کاتێک جێبەجێ دەکرێن کە مەرجەکە ڕاست بێت.
$age = 20;
if ($age >= 18) {
echo "Welcome. ";
echo "You may vote.";
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
بلۆک، کۆمەڵە ڕستە، بلۆکی کۆدەکە، بلۆکەکانی کۆد، بلۆکێکی کۆد
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The notes call a statement that contains such a block a «ڕستەی ئاڵۆز» (complex statement).
Related termsزاراوە پەیوەندیدارەکان
Learn more inزیاتر فێربە لە
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- PHP Syntax: Tags, Statements and Commentsداڕستنی PHP: تاگ، ڕستە و لێدوان
- Programming Languagesزمانەکانی بەرنامەسازی
- Loops: while, do...while, for, foreach, break and continueخولەکان: while و do...while و for و foreach و break و continue
- Making Decisions: if, elif, elseبڕیاردان:
if،elifوelse - Python Next to JavaPython لە تەنیشت Javaـەوە
- Dart Basics: Variables, Types and Control Flowبنەماکانی Dart: گۆڕاوەکان، جۆرەکان و ڕێڕەوی کۆنترۆڵ
- Controlling Loops: break and continueکۆنترۆڵکردنی خولەکان:
breakوcontinue - Functionsکردارەکان
- for Loops: Sums, Series and Searchingخولەکانی for: کۆکردنەوە، زنجیرە و گەڕان
- Constants and variable scopeنەگۆڕەکان و مەودای گۆڕاوەکان
- Dart Functions and Collectionsکردارەکان و کۆکراوەکانی Dart