switch statement
ڕستەی switch
Proposed Kurdish term — under reviewزاراوەی پێشنیارکراو — لە ژێر پێداچوونەوەدایە Definitionپێناسە
A statement that compares one value with a list of case values and runs the code of the case that matches. It uses loose comparison (==), and each case usually ends with break.
ڕستەیەکە کە یەک نرخ لەگەڵ لیستێک نرخی case بەراورد دەکات و کۆدی ئەو بەشەی یەکدەگرێتەوە جێبەجێ دەکات. بەراوردی نەرم (==) بەکار دەهێنێت و هەر بەشێک بە ئاسایی بە break کۆتایی دێت.
Exampleنموونە
In Kurdistan, Friday is a day off.
لە کوردستان هەینی ڕۆژی پشووە.
$day = "Fri";
switch ($day) {
case "Fri":
echo "Day off";
break;
default:
echo "Workday";
}Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
ڕستەی سویچ، ڕستەی هەڵبژاردن، ڕستەکەی switch، ڕستەکانی switch، ڕستەیەکی switch
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
The Kurdish scientists' dictionary calls it «بڕگەی (switch..case)» (بڕگە = clause).
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
Learn more inزیاتر فێربە لە
- Conditional Statements: if, else, elseif and switchڕستە مەرجییەکان: if و else و elseif و switch
- Dart Basics: Variables, Types and Control Flowبنەماکانی Dart: گۆڕاوەکان، جۆرەکان و ڕێڕەوی کۆنترۆڵ
- The switch Statementڕستەی switch
- Built-in Maths Functionsکردارە ئامادەکانی بیرکاری
- Making Decisions: Relational Operators and if / elseif / elseبڕیاردان: کارپێکەرەکانی بەراوردکردن و if / elseif / else