if
statement executes some code if one condition is true.else
statement is executed if the if
condition is false.if...else
statements can be nested to create an elsif
clause. Note that there is one elsif
(in one word) keyword in HyperDbg script engine.for
statement creates a loop that consists of three expressions, enclosed in parentheses and separated by semicolons, followed by a block statement to be executed in the loop.while
loop, we can execute a set of statements as long as the condition is true.do..while
loop is similar to the while
loop with one important difference. The body of do...while
loop is executed at least once. Only then, the test expression is evaluated.