مشخصات مقاله
-
0.0
-
769
-
0
-
0
حلقه ها در سالیدیتی
در حین نوشتن یک قرارداد، ممکن است با موقعیتی مواجه شوید که در آن باید یک عمل را بارها و بارها انجام دهید. در چنین شرایطی، برای کاهش تعداد خطوط، باید دستورات حلقه را بنویسید.
Operator & Description
Sr.No.
While Loop
The most basic loop in Solidity is the while loop which would be discussed in this chapter.
1
do...while Loop
The do...while loop is similar to the while loop except that the condition check happens at the end of the loop.
2
For Loop
The for loop is the most compact form of looping. It includes the following three important parts.
3
Loop Control
Solidity provides full control to handle loops and switch statements.
4