ifstatement executes some code if one condition is true.
elsestatement is executed if the
ifcondition is false.
if...elsestatements can be nested to create an
elsifclause. Note that there is one
elsif(in one word) keyword in HyperDbg script engine.
forstatement 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.
whileloop, we can execute a set of statements as long as the condition is true.
do..whileloop is similar to the
whileloop with one important difference. The body of
do...whileloop is executed at least once. Only then, the test expression is evaluated.